-Codechange: move GameLoop_Main() into a thread