Separation of the game logic