cleaned Word Ladder II DFS code a bit