In the actor -> position and motion palettes, you can determine the rotational speed of the actors and get the current direction of the actor. Use the first to start the actors moving (and change it on the fly if you want), and then use the second inside of conditionals to see if the colors are lined up or not. It will take a bit of doing for the second part, but it is possible, something like this:
if mouse was pressed on self
if |direction of self - 90| < 90 and |direction of adjacent actor - 45| < 90
increment points by 1
Be careful with the rotations as they can go beyond the 0 to 360 degrees (into negatives or into bigger numbers), so you'll want some catch to keep it in range (i.e. if direction of self > 360, point self in [direction of self - 360])