add game logic