chooses closest npc instead of random one