Basic structure for the game logic