Switch Animation On Touch

Im making a game that requires the main object’s animation to be switched back and forth on touch/when the space key is pressed. Here is my current code, but it only works for the first space key press.

you have to change MainCircle value somewhere if not it will never change.
you will also need an auxiliar variable, there is something similar for sound button mute on the forum