public void nextFrame(){
        this.frameNumber++;

        if(this.frameNumber >= frames.size()){
            if(this.looping == true){
                this.frameNumber = 0;
            }else{
                this.frameNumber = this.frames.size()-1;
                this.isDone = true;
            }
        }
    }