Add maze printing for debug and fixed DFS generation error