added BFS for virtual move in npc.js