Store all cells of middle row within column number range
for ( i = MinCol ; i <= Maxcol ; i ++ ) { s . add ( [ MidRow , i ] ) ; } for ( i = 0 ; i < 3 ; i ++ ) { if ( v [ i ] [ 0 ] == MidRow ) continue ;