Changed the path finding to allow for endpoint to be contained in multiple parent boxes.