clean up game file and REPL