CS421DepthFirstHeuristic