Added MainLoopThread which handles the control of the game.
Merge branch 'master' into MyDev