Beginning logic of game