Fix word ladder II to be a pure BFS