How to compare colors?

each of the small actors can have a Touch event in their event graph, and that can GetGameMode, cast it to your CustomGameMode, and then call the CompareColors function in your game mode. your game mode, on begin play, can either spawn all of these actors and get a reference to them, or it can use GetAllActorsOfClass, and loop through the array to get access the properties of the actors.