public static int getTotalEnergy() {
    if (Debug.active) {
      int total = energy;
      for (ArrayList<Organism> orgs : organisms) {
        for (Organism org: orgs) {
          total += org.life.get();
        }
      }
      return total;
    }
    return 0;
  }