 
     }
     
+    func alertToConfirm(title: String, msg : String, action : (UIAlertAction) -> Void)
+    {
+        let popup = UIAlertController(title: title,
+                                      message: msg,
+                                      preferredStyle: UIAlertControllerStyle.Alert)
+        
+        let okAction = UIAlertAction(title:"OK", style: .Default, handler: action);
+        popup.addAction(okAction)
+        
+        let cancelAction = UIAlertAction(title: "Cancel", style: .Cancel, handler: nil)
+        popup.addAction(cancelAction);
+        
+        self.presentViewController(popup, animated: true,
+                                   completion: nil)
+    }
+    
 }
 

        if num != -1
        {
            game.quickStart(num)
            performSegueWithIdentifier("NumPlayersToQuickStartRandomizeTeams", sender: nil)
        }
    }
    

        if num != -1
        {
            game.setNumPlayers(num);
            alertToConfirm("Start", msg: "Start Game by setting all players and team names", action:
                {
                    action in self.performSegueWithIdentifier("NumPlayersToNamePlayers", sender: nil)
                })
            
        }
    }
    
