Function getCharacterNameForPlayer