There actually is a pattern to the final boss...
If he crosses low with his mouth shut, he'll go high with his moouth open next and vice versa.
I struggled for 5 minutes before I stopped to pay attention.
Or maybe I got lucky and it just randomly worked like that for me