Thanks for playing! Glad you had a good time!
Good catch on the issue - I've taken a look over the logic, and it's a simple issue with the order in which win/loss conditions are checked which I'll patch once the voting period for the jam is ended. Cheers for letting me know :)