LoadCharacter procedure and rewritten C++ character loading to use it