 #define DROPPING_CONNECTOR 254
 #define ALERT 255
 
-SoftwareSerialWithHalfDuplex* bus[3];
+#define NUM_CONN 3
 
-int RX[3] = {A0, A2, A4};
-int TX[3] = {A1, A3, A5};
-int coil[3] = {6, 5, 10}; // magnets
-int distanceToSource[3];
+SoftwareSerial* bus[NUM_CONN];
+
+int RX[NUM_CONN] = {A1, A3, A5};
+int TX[NUM_CONN] = {A0, A2, A4};
+int coil[NUM_CONN] = {6, 5, 10}; // magnets
+int distanceToSource[NUM_CONN];
 int shortestDistanceToSource;
 int lampState;
 int alertState;

  // update timed processes
  handleTimers();
}


        removeTimer(alertTimer);
        alertState = false;
        // propagate signal though network
        for (int j=0; j<NUM_CONN; j++) if (j!=i) bus[j]->write(c);
        break;
      default: // energy is received
        if (!isSource) {
