Choice of strategies in a social dilemma