Modeling The Effects Of Cognition On Cooperation