added "won" update function