more logic for initializing the game