hideous solution to anagram problem
cleaned up code a little bit
Simplified check for anagram.