public void spill()
      {
         commands++;
         int temp = (int)water;
         while(water > diff / 100)
         {
            water -= diff;
            pause();
         }
         water = 0.0;
         totalWater -= temp;
         if(useTotal)
            doneList[totalWater] = true;
      }