   char* switchState = (char)payload[0];
 
   if (switchState == '2') {
-    if (relayStates[posInArray] == HIGH){
+    if (relayStates[posInArray] == HIGH) {
       switchState = '1';
     }
     else {

    }
  }

  if (isMutuallyExclude){
   mutuallyExcludePair(switchState, posInArray);
  }
  switchRelay(switchState, posInArray);


    if (client.connect("RelayboardClient")) {
      Serial.println("connected");
      client.publish(outTopic, "RelayBoard booted");
      for (int thisPin = 0; thisPin < pinCount; thisPin++) {
        char* state = relayStates[thisPin] == HIGH ? "0" : "1";
        publishRelayState(thisPin + 1, state);
      }
      client.subscribe(inTopic);
    } else {
      Serial.print("failed, rc=");
