adding win lose handlers