While i am not the creator of the series, sceneNames helps to maintain a record of player progress and updates the map by showing explored areas as well as where the player is at the time of a saved game.
Although other functions can be used instead of hashset, like dictionary or list, it’s relatively simple to use for this purpose. It can also prevent duplicate names from occuring, however takes a bigger memory space because of how hashsets work.