public void spinAction(JSpinner spin, boolean increase){
		if(flag == 0){ 			//calling setValue() calls this method so this avoids recursion
			int value = (Integer)spin.getValue();
			if(increase == true){
				if(pool > 0){
					pool--;
				}
				else{
					flag = 1;
					spin.setValue(--value);
				}
			}
			else{
				if(value > 0){
					pool++;
				}
				else{
					flag = 1;
					spin.setValue(++value);
				}
			}
			text.setText(pool.toString());
		}
		else{
			flag = 0;
		}
		
	}