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