start of game logic