@Override
	public void update(){
		if(moving){
			if(this.lastState!= 0){
				sequenceIndex = 0;
			}
			this.lastState = 0;
			setImageSequence(moving2);
			long currentTime = System.currentTimeMillis();
			if((currentTime - lastUpdatedTime) >= timeDelay){
				if(sequenceIndex >= imageSequences.length-1){
					sequenceIndex = 0;
				}else{
					sequenceIndex++;
				}
				lastUpdatedTime = currentTime;
			}
		}else{
			setImageSequence(still);
			sequenceIndex = direction;
			this.lastState = 1;
		}
	}