Create word_chain.rb; needs improvement