Refactored quadtree to rectangles only, still broken