Cooperation in artificial intelligence