private void stateAltDraw(int x,int y){
					if(!sedna.getSelected() ||sedna.getSelection(x,y)){
						if(statefillflag){
							switch(sft){
								case 0: mainBrain.setCellState(x,y,0);viewer.setAState(x,y,0); break;
								case 1: mainBrain.getCell(x, y).setOption(toolstring[1], false);
								 break;
								case 2: mainBrain.getCell(x, y).setParameter(toolstring[1], 0);
								 break;
								default: mainBrain.setCellState(x,y,0);viewer.setAState(x,y,0); break;}
							}
							else{
								switch(sdt){
									case 0: mainBrain.setCellState(x,y,0);viewer.setAState(x,y,0); break;
									case 1: mainBrain.getCell(x, y).setOption(toolstring[0], false);
									 break;
									case 2: mainBrain.getCell(x, y).setParameter(toolstring[0], 0);
									 break;
									 default: mainBrain.setCellState(x,y,0);viewer.setAState(x,y,0); break;
								}
							}
						}}