Moved the mini game's call to completeMiniGameWithSuccess to a completion block so it runs after the view controller is dismissed.