Rewrite diagonal-winner