need to review bfs, dfs