refractored code base, changed iNPC to iNonCharacter