Switched animations from taking a frame to seconds as a parameter and added the method getAnimationLength().