Coded a version of getEntityWithinAABB inside Sphere code