worked on game logic