Using toroidal board logic