got DFS working iteratively