recode dyadmino selection method to reflect both same node and distance from position