Adding basic game logic.