Hi all, I am trying to develop a game, a 3d version of connect 4. The game has a 4x4x4 grid, which the user enters there colored piece (red or yellow). The game encorporate gravity so the verticle columns 'fill up' as such. However I have got this part working but I am having problems in searching to see if the player has scored a line.

Any ideas how I could do this, is there a more effcient way than searching through the whole array each time a piece is placed???

Many thanks