added gameloopthread/controllerthread