Adds game logic