Could it be the period after "women"
that’s causing this issue? (Assuming it’s not a typo.)
Also, if you’re not already using it, I highly suggest CSIDE to write your game as it has an built-in testing method and will tell you the exact line in your document that’s causing the issue, hopefully pinpointing things further.