solver now works, and duplicates are removed from list of words