add main and win rules