Why are adding a line at the end ?
I'm not sure what this is trying to do. If those files are incorrect, the game will freeze.