Clone graph BFS solution modified