Fixing typo, crash in windows

Windows was crashing becasue the startrendering loop was being triggered
without first initializing the engine.