Modeling alliance activity: an iterated prisoners' dilemma with exit option