DFS almost working