On evolution of cooperation and conflict