     }
 
     if (c == '\n') {
+      cmd[cmd_idx] = 0;
       exec_cmd();
     } else {
       Serial.println  ("command too long");

    score_strips[i] = new Adafruit_NeoPixel(SCORE_STRIP_LEDS, score_pins[i], NEO_GRB + NEO_KHZ800);    
    score_strips[i]->begin();
    for (byte l = 0; l < SCORE_STRIP_LEDS; l++) {
      score_strips[i]->setBrightness(l, 255);
      score_strips[i]->setPixelColor(l, 0, 0, 0);
    }
    score_strips[i]->show();


#define TEAMS 3
static uint32_t team_colors[TEAMS];

void setup() {
  Serial.begin(115200);
