Fix word ladder two bfs problem.