added do/while around main menu, giving it and submenus proper
functionality