adds basic game logic