grid to graph;find all paths