Implicit Coalitions in a Generalized Prisoner's Dilemma