Working on game logic.