Sentence:  And because fortune had favored neither the prisoner nor the red haired captain , they would be each other 's <WSD>undoing</WSD> . 
Meaning of the word marked with <WSD> tags:  an act that makes a previous act of no effect (as if not done)