// Change the color of the four corners and the square in the middleboolCheckIsNeededChangeGray(int nRow,int nCol ){// section 1/3/7/9if(( nRow <=2|| nRow >=6)&&( nCol <=2|| nCol >=6)){returntrue;}// section 5if( nRow >=3&& nRow <=5&& nCol >=3&& nCol <=5){returntrue;}returnfalse;}