Hi all,

I want to do the following - any help would be appreciated.

I've got a 8*8 grid with different coloured tokens 8 possible (it's a game) now given the current state of the game i want to...