-Codechange: move GameLoop_Main() into a thread

Another approach to try to fix the deadlock issue.