fixes some end-game stuff and some sound