First working code. Wins and losses as alerts.