Check whether we are playing an animation or not. This looks at whether we are in training or testing mode. It will look at the correct anim sequence based on this mode. So if you are in training mode and the testing animation is playing, while the training sequence isn't playing, then it returns false. It would in that case only return true when the training anim sequence is playing. The same goes in testing mode, if we are in testing mode it will only return true when the test anim sequence is playing.