It's totally possible that there are some logic issues in there somewhere. I'll give it another look once voting is over (I don't want to make any edits in the meantime, wouldn't be fair!)
That's fine, no problem :) At first I thought it might have been a deliberate feature of the game, but then found out that it was possible to win or lose.