Working word_chains.rb