moved the start game to separate function