Finds the solution to any MxN sized maze or determines if no path is available