public void settle(){
		int buyquant = Integer.parseInt(buynumber.getText());
		int sellquant = Integer.parseInt(sellnumber.getText());
		int type_int = type.getSelectedIndex()+1;
		int current = sector.getQuantity(type_int);
		
		int checkCap = Empous.Gov.getStat("reserve") - sum[0][0];
		int checkWood = Empous.Gov.getStat("woodstock") - sum[0][1];
		int checkOil = Empous.Gov.getStat("oiltank") - sum[0][2];
		
		// If they have enough resources, perform the transaction
		if (checkCap >= 0 && checkWood >= 0 && checkOil >= 0){
			
			Empous.Gov.setStat("reserve", checkCap);
			Empous.Gov.setStat("woodstock", checkWood);
			Empous.Gov.setStat("oiltank", checkOil);
						
			sector.setQuantity(type_int, current+buyquant-sellquant);
		}
		// If they don't, give a warning
		else{
			System.out.println("Not enough resources!");
		}
	}