The motivational basis of sex differences in the prisoner's dilemma game