Added game logic.