inital game logic