New algo for Dames + end of a party