public void updatePosition() {
		if (xPos < xDestination)
			xPos+= 2;
		else if (xPos > xDestination)
			xPos-= 2;

		if (yPos < yDestination)
			yPos+= 2;
		else if (yPos > yDestination)
			yPos-= 2;

		if (xPos == xDestination && yPos == yDestination) {
			if (command==Command.GoToSeat) agent.msgAnimationFinishedGoToSeat();
			else if (command==Command.LeaveRestaurant) {
				agent.msgAnimationFinishedLeaveRestaurant();
				isHungry = false;
				gui.setCustomerEnabled(agent);
			}
			if (moving == true) {
				moving = false;
				agent.msgAnimationDone();
			}
			command=Command.noCommand;
		}
	}