modified some game loop