protected static void copyBoardInto(IHex[] dest,int destWidth,int x,int y,IBoard copied){
  for (int i=0; i < copied.getHeight(); i++) {
    for (int j=0; j < copied.getWidth(); j++) {
      dest[(i + y) * destWidth + j + x]=copied.getHex(j,i);
    }
  }
}

protected static void copyBoardInto ( IHex [ ] dest , int destWidth , int x , int y , IBoard copied ) { for ( int i = 0 ; i < copied . getHeight ( ) ; i ++ ) { for ( int j = 0 ; j < copied . getWidth ( ) ; j ++ ) { dest [ ( i + y ) * destWidth + j + x ] = copied . getHex ( j , i ) ; } } }
copies the data of another board into given array of hexes , offset by the specified x and y .
