listen(){
    //recognize as a hit
    //return an array
    //[0]: true if triggered
    //[1]: switch data
    if(this.flip == 1 && this.state == false){

      this.state = true;
      this.on = !this.on;
      return [true,this.on];
    }
    else if(this.flip == 0 && this.state == true){
      this.state = false;
      return [false,this.on];
    }
    else{
      return [false,this.on];
    }
  }
//return false if its a false;
return false if its a false.
return false if its a false .
listen(){
    if(this.flip == 1 && this.state == false){
      this.state = true;
      this.on = !this.on;
      return [true,this.on];
    }
    else if(this.flip == 0 && this.state == true){
      this.state = false;
      return [false,this.on];
    }
    else{
      return [false,this.on];
    }
  }
listen ( ) { if ( this . flip == 1 && this . state == false ) { this . state = true ; this . on = ! this . on ; return [ true , this . on ] ; } else if ( this . flip == 0 && this . state == true ) { this . state = false ; return [ false , this . on ] ; } else { return [ false , this . on ] ; } }
return false if its a false;
return false if its a false ;
//recognize as a hit //return an array //[0]: true if triggered //[1]: switch data