public void updatePosition() 
	{
		if (xCordCurrent < xDestination)
			xCordCurrent++;
		else if (xCordCurrent > xDestination)
			xCordCurrent--;

		if (yCordCurrent < yDestination)
			yCordCurrent++;
		else if (yCordCurrent > yDestination)
			yCordCurrent--;

		
		
		if (xCordCurrent == xDestination && yCordCurrent == yDestination) 
		{
			if (command==Command.GoToSeat)
			{
				agent.msgAnimationFinishedGoToSeat();
			}
			else if (command == Command.GoToCashier)
			{
				agent.msgAnimationFinishedGoToCashier();
			}
			else if (command==Command.LeaveRestaurant) 
			{
				agent.msgAnimationFinishedLeaveRestaurant();
				System.out.println("about to call gui.setCustomerEnabled(agent);");
				isHungry = false;
				gui.setCustomerEnabled(agent);
			}
			command=Command.noCommand;
		}
	}