         let message = "Score: \(score)"
         let alertController = UIAlertController(title: title, message: message, preferredStyle: .Alert)
 
-        let okAction = UIAlertAction(title: "Ok", style: .Default, handler: { (_) in self.performSegueWithIdentifier("exitGameSegue", sender: self) })
+        let okAction = UIAlertAction(title: "Ok", style: .Default) {
+            (_) in
+            self.exitGame()
+        }
         alertController.addAction(okAction)
         return alertController
     }


    override func viewDidLoad() {
        super.viewDidLoad()
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(self.receiveEvent(_:)), name: "showAlert", object: nil)
        presentGameScene()
    }


        gameScene.scaleMode = .AspectFill
        skView.presentScene(gameScene)
    }
    
    func exitGame() {
        performSegueWithIdentifier("exitGameSegue", sender: self)
    }

    func receiveEvent(notification: NSNotification) {
        let userInfo = notification.userInfo as! [String: Int]
