This game is a shameless copy of a game that I favourited around 2004 on deviantART.
You could still find it by googling gridgame flash , but the original submission has been deleted.