Some more corrections AI-HW1

Corrected the problem of skipping visited node in DFS.