Fix allies matchmaker algorithm