Added win/lose alerts and logic.