modify gameloop and objectpool