add find nearest same color block logic