Modelling Alliance Formation: A Noncooperative Approach