fix some glitches in tutorial - eg if inputting empty lines... And stop it if disconnect or clear screen