initial game logic