Cooperation in the prisoner’s dilemma