public boolean diffOne(Count count) {
      int oneoff = Math.abs(count.a - a) + Math.abs(count.b - b) + Math.abs(count.c - c);
      if (oneoff != 2) {
        return false;
      }
      int diff = Math.abs(total - count.total);
      while (diff % 3 == 0 && diff > 0) {
        diff /= 3;
      }
      return diff == 1 || diff == 2;
    }