private boolean wire(String color) {
    switch (color) {
      case "red":
        return wire[0];
      case "green":
        return wire[1];
      case "blue":
        return wire[2];
    }
    return false;
  }