game logic working