Added pause and loop in the animation class