function Update(self)
if self:IsPlayerControlled() == true and self.AIMode == AIMODE_GOLDDIG then
      local self.display = CreateMOSParticle(PuppetUpgradeDisplay,Cordyc.rte);
      self.display.Pos = self.Pos;
      MovableMan:AddParticle(self.display);
      if self:GetController():IsState(Controller.MOVE_LEFT) == true then
         --do your wacky upgrading here--
      end
      else if self:GetController():IsState(Controller.MOVE_RIGHT) == true then
         --do different wacky upgrading here--
      end

--[[   YOU ONLY NEED THESE IF YOU WANT MORE THAN TWO UPGRADE CHOICES
      else if self:GetController():IsState(Controller.BODY_CROUCH) == true then
         --upgrade--
      end
      else if self:GetController():IsState(Controller.BODY_JUMP) == true then
         --more upgrading--
      end
]]--   YOU ONLY NEEDED THOSE IF YOU WANTED MORE THAN TWO UPGRADE CHOICES

   end
end