public void actionPerformed(ActionEvent arg0) {
			if(arg0.getSource() instanceof JButton) {
				JButton button = (JButton) arg0.getSource();
				FuelTank tank = model.getRobot().getFuelTank();
				if(button.getText().startsWith("Add Fuel")) {
					model.getBankAccount().withdraw(getSelectedFuelAmount());
					model.getRobot().refuel(getSelectedFuelAmount());
				} else if(button.getText().startsWith("Upgrade Tank")) {
					model.getBankAccount().withdraw(tank.getMoneyNeededForNextTier());
					tank.upgrade();
				} else if(button.getText().startsWith("Upgrade Dynamite")) {
					model.getBankAccount().withdraw(10 +
							(((int)Math.pow(model.getRobot().getDynamiteTier() + 1, 2)) * 5));
					model.getRobot().upgradeDynamite();
				} else if(button.getText().equals("Buy Another Reserve ($100)")) {
					model.getBankAccount().withdraw(100);
					model.getRobot().addReserve();
				} else if(button.getText().equals("Sell A Reserve ($90)")) {
					model.getBankAccount().deposit(90);
					model.getRobot().sellReserve();
				} else if(button.getText().equals("Buy Some Dynamite ($150)")) {
					model.getBankAccount().withdraw(150);
					model.getRobot().addDynamite();
				} else if(button.getText().equals("Sell Some Dynamite ($140)")) {
					model.getBankAccount().deposit(140);
					if(!model.isInfiniteDynamite()) {
						model.getRobot().sellDynamite();
					}
				} else if(button.getText().equals(s.unlockPortalButton.getText())) {
					model.getBankAccount().withdraw(30000);
					model.HAS_PORTAL = true;
				}
				model.doRefresh();
			} else if(arg0.getSource() instanceof JComboBox) {
				if(frame.isVisible()) model.doRefresh();
			}
		}