change ValidNeighbors rule