Line traceback works functionally, but buggy

Sometimes lines don't erase correctly.