added dictionary, also modified anagram solver to work correctly