created class for game. Toroidal grid implemented