Title: A theory of alliance formation