Use getClass instead of getting directly from the character class map