dfs work

work on depth first search