calculate winning positions and clean up specs