Update for prisoners dilemma but not working properly