changing the whole way the program reads in and removes duplicate words.
No longer using a method