debug code for auto start the game into the editor/flight.