add changes from larsengels, workaround for disabled echo on terminal after ending game