public void update()
   {
   //reproduce if lucky
      if(Math.random() < getReproductionRate())
      {
         reproduce();
      }
      
      Sugar s = search();
      if(SugarPanel.verbose) System.out.println("Going to "+s);
      if (s!=null)
      {
         moveTo(s);
      }
      else 
         moveTo(SugarPanel.getSugarGrid()[getX()][getY()]);
      age++;
      if (age>=death_age || sugar < 0)
         remove = true;
   }