public void fill()
      {
         commands++;
         int temp = capacity - (int)water;
         while(water + diff / 100 < capacity)
         {
            water += diff;
            pause();
            if(water + diff / 100 > capacity)
            {
               water = (double)capacity;
               pause();
            }
         }
         water = (double)capacity;
         totalWater += temp;
         if(useTotal)
            doneList[totalWater] = true;
         else
            doneList[(int)water] = true;
      }