Wordchain in Scala.