more work on sorting out npc ai..mostly working