corrected win loss handler