DFS of a maze