I apparently won by jumping off the edge. The boss could never hit me. I like the idea of just staying alive to win though. Like a survival platformer.