changed adjList, removed not working dfs