add the method to get the current state of the animation (running or not)