Got the rectangles correct. Still to figure out range/neighbor search