listenAll() {
    if (this.curIns != null) {
      for (var button of this.allButtons) {
        var result = button.listen();
        result.push(button.name);
        if (result[0]) {
          //record the last hit interacts
          this.lastHit = result;
          if (button.name === this.curIns[0]) {
            console.log("great!");
            this.curIns = null;
          } else console.log("fuck!");
        }

      }
    }

  }
//only runs when there is a current instruction 
only runs when there is a current instruction
only runs when there is a current instruction
listenAll() {
    if (this.curIns != null) {
      for (var button of this.allButtons) {
        var result = button.listen();
        result.push(button.name);
        if (result[0]) {
          this.lastHit = result;
          if (button.name === this.curIns[0]) {
            console.log("great!");
            this.curIns = null;
          } else console.log("fuck!");
        }
      }
    }
  }
listenAll ( ) { if ( this . curIns != null ) { for ( var button of this . allButtons ) { var result = button . listen ( ) ; result . push ( button . name ) ; if ( result [ 0 ] ) { this . lastHit = result ; if ( button . name === this . curIns [ 0 ] ) { console . log ( "great!" ) ; this . curIns = null ; } else console . log ( "fuck!" ) ; } } } }
only runs when there is a current instruction
only runs when there is a current instruction
//record the last hit interacts