started working on game logic