Rewrite starting from setsperi of the game Set