DFS explored implemented