Split teams into 3 groups after 2 games based on how many games did they win - first group has teams with 2 wins and 0 losses, second: 1 win 1 loss, third: 0 wins 2 losses. These groups then play round-robin.
info at phpclasses dot org