Updated NPC direction changing.