public void setCommand(Command s, int index) {
    dispatcher.performAction(s, index);
  }
@Test
  void testSetCommand() {
    final var model = new GiantModel("giant1", Health.HEALTHY, Fatigue.ALERT,
        Nourishment.SATURATED);
    Action action = new Action(model);
    GiantView giantView = new GiantView();
    Dispatcher dispatcher = new Dispatcher(giantView);
    assertEquals(Nourishment.SATURATED, model.getNourishment());
    dispatcher.addAction(action);
    GiantController controller = new GiantController(dispatcher);
    controller.setCommand(new Command(Fatigue.ALERT, Health.HEALTHY, Nourishment.HUNGRY), 0);
    assertEquals(Fatigue.ALERT, model.getFatigue());
    assertEquals(Health.HEALTHY, model.getHealth());
    assertEquals(Nourishment.HUNGRY, model.getNourishment());
  }