Context Word: friends. 
Question: PersonX decided to stop being best friends with PersonY after _ realized they were betraying them. 
Answer: PersonX
PersonX decided to stop being best friends with PersonY after _ kept on betraying them.