add basic game logic