Fixed an issue that would prevent the game from correctly resetting its state after the final boss battle.