refactored anagram to call the renamed alphagram method