Yes, perhaps it could have been made more clear. Technically you win by getting both healths to a particular level rather than 1 of them being defeated.
Thanks for taking the time to play!