Start part1.3 and finish the dfs and bfs for 1.3