setSwitch method

void setSwitch()

Implementation

void setSwitch(){
  isTapped = !isTapped;
}