Added breadth-first-search method to find closest passable node to a click