public String runCommand() {
		int commandNumber = rand.nextInt(100);
		try {
			if (commandNumber < 10) {
				this.currentMachine.powerToggle();
				System.out.println("Machine turned " + (this.currentMachine.isOn() ? "on" : "off"));
			} else if (commandNumber < 30) {
				insertFunds();
				System.out.println("More money inserted");
			} else if (commandNumber < 40) {
				changeMachine();
				System.out.println("Machine Changed");
			} else if (commandNumber < 50) {
				changeFoodItem();
				System.out.println("Food Item Selection Changed");
			} else if (commandNumber < 60) {
				this.currentMachine.returnMoney();
				System.out.println("Leaving Early");
				this.currentMachine.setInUse(false);
				return "left early";
			} else if (commandNumber < 90) {
				if (purchase()) {
					this.currentMachine.setInUse(false);
					return "success";
				}
			} else {
				//do nothing
			}
		
		} catch (NullPointerException e) {
			changeMachine();
		}
		
		
		return "continue";
	}