Modify Word Ladder return condition