The 'repeating question' problem is simply that, if you answer too many questions wrong without one of the wives becoming completely stripped, you eventually use up all the questions, and the game goes into a loop.
By this point of the game, one of the wives is usually naked. At some point it has to end. I'll add a few more questions, and then an end screen for those who have not stripped either wife by that point in the game.