public void setWrap(String d, boolean e){
					int s; if(e){s = 1;}else{s = 0;}
					if(d == "X"){xwrap = e;bpol[2] = s; bpol[6] = s;}
					if(d == "Y"){ywrap = e;bpol[0] = s; bpol[4] = s;}
					if(xwrap && ywrap){bpol[1] = 1; bpol[3] = 1; bpol[5] = 1; bpol[7] = 1;}
					else{bpol[1] = 0; bpol[3] = 0; bpol[5] = 0; bpol[7] = 0;}
				}