private int counter;
private void runCounter()
{
counter++;
if (counter == 500) getWorld().removeObject(this);
}
public void act()
{
removeTouching(Wand)();
runCounter();
}
; expected


