public void setRule(String name, boolean rs, int rv ){ 
			switch(aamode){
				case 1:pete.setRule(name, rs, rv); break;
				case 2: for(int h = 0; h <= gridy-1; h++){
						for(int w = 0; w <= gridx-1; w++){
							grid[w][h].setRule(name, rs, rv);}}	break;
			}
		}