Debugging the DFS for Problem 79