Set the program to detect when ther there is no path and to restart and resolve another path problem, once a solution is found