title: same alert shows up multiple 'cancel' buttons
body: <p>I have a game which displays an alert whenever a player wins. However after restarting the game and the same alert shows up multiple 'cancel' buttons show up. just like showed in the picture. any ideas what it could be, </p>
  
  <pre><code>var alertX = UIAlertController(title: "Winner", message: "X Has Won", preferredStyle:.alert) 
  func AlertPlayer1() {
     alertX.addAction(UIAlertAction(title:"CLOSE",style: UIAlertAction.Style.destructive, handler: { (action) in self.alertX.dismiss(animated: true, completion: nil)}))
     self.present(alertX, animated:true, completion:nil) 
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/wVNhV.png" alt="enter image description here"></p>
  
  <p>I have simply then just called the function whenever somebody wins</p>