Added code to know who won and show alert to reset game.