Fixed an issue that would mess up the code in the game ending scene