small tweak to check_for_words
Trie#all_words now returns an array