game logic in