complete setup game logic