A Theory of CooperATion And CompeTiTion