Change move-npcs to use map-reduce algorithm for xtra speeeed