Added game logic