improve pathfinfing and pseudo ai for npc