Create loop to open main menu if the program is not exited