update ai npc controller

still need to work on the script