This is the answer for MazeSolution using Stack ,This code is used to find the first path to cross the maze,but not guarantee the best path(using the least steps )