function addStatesToManager() {
  manager.addState(states[0]);

  for (let i = 1; i < states.length; i++) {
    const state = states[i];
    manager.addState(state);
  }

  stateChangeCount = 0;
}
Adds all the mock states to the undo-redo manager.