Stop and start the animation when the play and stop buttons are hit.
Refactor a bit to turn the program into a more reusable object.