Work on game logic