Now, we need to link up our stories. When the user turns left, they see a tiger (story1) and when they turn right, they find a chest (story2).
Link both buttons to an IBAction called choiceMade().
Modify the code inside your ViewController.swift so that when you run the app and the user clicks on the button that says “Take a left”, the storyLabel updates to show “You see a tiger” and the choice buttons show the new choices. But if the user clicked on the button that says “Take a right”, the storyLabel updates to show “You find a treasure chest” as well as the new choices for that story.
If successful, you should be able to navigate through the story like the flow chart below:
💡Hint 1: Think about how you can track where the user is in the storyline using a number.
💡Hint 2: You might want to create an updateUI() method to reduce the amount of repeated code.