public void fillCell(){
						cellfillflag = true;
						for(int y=0;y<= mainBrain.ysiz-1;y++){
						for(int x=0;x<= mainBrain.xsiz-1;x++){
						switch(cfo){
							case 0: cellDraw(x,y); break;
							case 1: cellCheckDraw(x,y,false); break;
							case 2: cellRandDraw(x,y); break;
							case 3: cellRCDraw(x,y); break;
							default: cellDraw(x,y); break;}
						}}
						if( mode == 3){viewer.repaint();}
						cellfillflag = false;
							}