The Mathematics of Trust & Betrayal: The Logic of the Prisoner’s Dilemma