New Game tab now closes once 'Create Game' button has been pressed

I added a function inside of the MainViewController that closes the current open tab and called it when the create game button is pressed