oops:
>        elsif $words.include? symbol
should be:
         elsif $valid_words.include? symbol