add game logic and sql