Learning to Cooperate in Normal Form Games