adding pause/resume functionality
fixes issues with pause/resume

-Animation does not work if Pause/Resume buttons are tapped first.
-Tap Resume while animating, end the animation, and after a while it
starts again.
-auto ->pause->auto
-auto->pause->reset->auto
Merge pull request #3 from MoathOthman/master

adding pause/resume functionality