AnagramGame implementation