added an alert controller to declare winner