Added class AnimationTimer and implemented it to regular attackImages