implemented pooling for entities in world and groupmanager