nextAction() {
    if (!this.hasNewAction()) {
      return null;
    }
    const action = this.chain[this.chainPointer];