word ladder II solution, additional unfinished version at the end