Added win/loss code