The boss is undefeatable :(
I know this comment is four years old, but the final boss is beatable. You need to use the correct moves in the proper order to win though. And any deviation from the correct strategy will result in a loss.