Moved aabb fixing code with negative boxes outside of PhysicsEngine