NPC class and AI