I am working on Leetcode \'escape the maze\', I have written DFS algorithm. The idea is to create a stack to record the route, and label \'2\' in maze matrix representing it