DFS shows paths in correct order