modified quit and added showChoice