public void noteStk(int s,int a) {
    if (Debug.enabled)
      Debug.check(cW<=mW);

    if ((s>=0) && (s!=9)) {
      cW--;
      if ((s & (~2)) == 5) cW--; // Note additional word for J and D
      
      if (Debug.enabled)
        Debug.check(cW>=0);
    };

    if ((a>=0) && (a!=9)) {
      cW++;
      if ((a & (~2)) == 5) cW++; // Note additional word for J and D
      if (cW>mW) mW=cW;
    };
  };