adds game logic