private void changeMachine() {
		boolean checkAll = false;
		
		outer:for (int i = 0 ; i < this.lobby.getMachines().size(); i++) {
			if (this.lobby.getMachines().get(i).isOn()) {
				checkAll = true;
				break outer;
			}
		}

		
		if (this.currentMachine != null) {
			this.currentMachine.setInUse(false);
			this.money += this.currentMachine.returnMoney();
		}
		this.currentMachine = null;
		if (!checkAll) {
			this.currentMachine = this.lobby.getMachines().get(this.rand.nextInt(this.lobby.getMachines().size()));;
			this.currentMachine.setOn(true);
		}
		while (this.currentMachine == null) {
			try {
				this.currentMachine = this.lobby.getMachines().get(this.rand.nextInt(this.lobby.getMachines().size()));
				if (this.currentMachine.isInUse()) {
					this.currentMachine = null;
				}
			} catch (IndexOutOfBoundsException e) {
				System.err.println("Invalid Machine Selection");
				this.currentMachine = null;
				//return;
			}
		}
		this.currentMachine.setInUse(true);
		changeFoodItem();
		insertFunds();
	}