I still have the problem that the animation doesn’t play again after the second mouse click. Is there a way that for everytime I click the mouse, the animations starts (and stops, since there is only one loop)?
I have refactored your code a bit so action.play(); is only executed when you perform a click. Stopping the animation action right before ensures you actually start it from the beginning.