code: public void restart() {
  		if (frames.size() == 0) {
  			return;
  		}
  		stopped = false;
  		currentFrame = 0;
  		nextChange = (int) (((Frame) frames.get(0)).duration / speed);
  		firstUpdate = true;
  		lastUpdate = 0;
  	}
docs: Restart the animation from the beginning