Fixed multiple calls to mainMenu, which could cause a stack overflow.