Trying to solve a words chain problem, it doesn't work very well so far....