fixed a bug where GameEngine itself started a new thread