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

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

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