Changed all_seen_words to a hash. Now keeps track of what each word is adjacent to