thread created for gameEngine