In Swift, I have created a closure method (I think):

```
func firstMove(action: UIAlertAction!) {
        if action.title == "Yes" {
            currentPlayer = "X"
        } else {
            currentPlayer = "0"
        }

```

That I pass into this UIAlertAction method:

```
let optionToStartController = UIAlertController(title: "", message: "Do you want first move?", preferredStyle: .Alert)
            optionToStartController.addAction(UIAlertAction(title: "Yes", style: .Default, handler: firstMove))

```

How can I convert both the closure and method to Objective-C?

I have tried doing:

```
- (void)firstMove:(UIAlertAction*)action
{
  if ([action.title isEqual: @"Yes"]) {
    _currentPlayer = 'X';
} else {
    _currentPlayer = 'O';
 }
}

```

And passing it like this:

```
UIAlertController *optionToStartController = [UIAlertController alertControllerWithTitle:@"" message:@"Do you want first move?" preferredStyle:UIAlertControllerStyleAlert];
[optionToStartController addAction:[UIAlertAction actionWithTitle:@"Yes" style:UIAlertActionStyleDefault handler: firstMove]];

```