Since the commands were too much, I just reduced the number of blocks that said "turn". After that, the cat would flip every time you click the spacebar
Credits: ScratchEdTeam