for (int p = 0; p < Stats.phase; p++) {
for (int p = 0; p <= Stats.phase; p++) {
  final protected void printTotal() {    int total = 0;    for (int p = 0; p < Stats.phase; p++) {      total += (state[p]) ? 1 : 0;    }    printValue(total);  }