public static Race valueOf(int value) {
      switch (value) {
        case 0: return Zerg;
        case 1: return Terran;
        case 2: return Protoss;
        case 3: return Random;
        case 4: return Other;
        case 5: return None;
        case 6: return Unknown;
        default: return null;
      }
    }