*Fixed bug in gameloops