In addition to the usual rules, the grid is toroidal. That is to say, the top and bottom edges of the grid are connected the way they would if you bent the grid into a cylinder. So are the left and right edges. Or, for the fans of video games, think Pacman.
|Stardust 3 [Toroidal]|