private void calculate(){
			int total = 0;
			for(int count = 0; count < neighborstate.length; count++){
				if(count == 4){}
				else{total += neighborstate[count];}
				if(total > 1024){total = 1024;}
				if(total < -1024){total = -1024;}
			}
			state = total;
			}