if (tileIndex >= this.numberOfTiles ) {  throw new IllegalArgumentException("invalid static tile index: " + tileIndex + " (there are only [" + this.numberOfTiles + "] tiles available.");    }
if (tileIndex > this.numberOfTiles) {  throw new IllegalArgumentException("invalid static tile index: " + tileIndex + " (there are only [" + this.numberOfTiles + "] tiles available.");    }
	public void fillCells(int col, int row, int numCols, int numRows, int tileIndex)	{		if (tileIndex >= this.numberOfTiles ) {			//#ifdef polish.debugVerbose				throw new IllegalArgumentException("invalid static tile index: " + tileIndex + " (there are only [" + this.numberOfTiles + "] tiles available.");			//#else				//# throw new IllegalArgumentException();			//#endif		}		int endCols = col + numCols;		int endRows = row + numRows;		for (int i = col; i < endCols; i++ ) {			for (int j = row; j < endRows; j++) {				this.grid[ i ][ j ] = tileIndex;			}		}	}