I want to make tile based game:
(all pics are made only to show game concept)
1. At start of the game I want 12x12 tiles (20px x 20px) to be randomly generated from 6 actors. (green,yellow,red,blue,brown and black square). Like this:

2. The player have to change one square with another(in turn) and then he will score if he succed in making (for example) 3 red squares to be in one line (horizontal or vertical). How to make script to check multiple direction with which object can collide?
example:


3. Now the 3 red squares will dissapear. And on their place new random squares will be created. The game goes on untill there isn't any posibility to score at one turn. How to make script which would check all possible moves and if no possibility to get 3 squares in a row occures would end game?
4. How to make "created actor" ingame (red_square; on key up "left"; create actor "red_square") to do same actions (like possibility to move) which original one had?
Sorry for my bad english.. I can only hope it is at least a bit understoodable in those not easy matters

I searched the forums to help myselve in game making but I failed to get answers I wanted to get. That's why I asked this 4 questions. Hope you can help me..
Regards Trojan.
PS. I wont be online in next 2-3 days cause I will be on a trip, so don't think I had resigned from game making if I wont repply to posts/thank for help in few days.
