beginning game logic