made anagramList public for testing purposes