public void pourInto(Bucket dest)
      {
         commands++;
         double w1 = water, w2 = dest.water;
         int temp = dest.capacity - (int)dest.water;
         if(temp > (int)water)
            temp = (int)water;
         while(water > diff/100 && dest.water + diff/100 < dest.capacity)
         {
            dest.water += diff;
            water -= diff;
            pause();
         }
         water = w1 - (double)temp;
         dest.water = w2 + (double)temp;
         if(!useTotal)
         {
            doneList[(int)water] = true;
            doneList[(int)dest.water] = true;
         }
      }