An breadth-first and depth-first algorithms for a Grid maze