game loop thread added