return path and mark found cells