wait until page is loaded to start game