Moved game logic to game class