// Update is called once per frame
    void Update()
    {
        PSLocationArraySingleton s = PSLocationArraySingleton.Instance();
        Singleton so = Singleton.Instance();
        string    currentTourName = so.getTourName();

        Dictionary <string, int> toursLocationsStatusUpdate = s.getToursLocationsUpdateStatusDictionary();

        if (!locationsDisplayed && locations.Count > 0 && toursLocationsStatusUpdate[currentTourName] == 0)
        {
            createLocationsList();
        }

        else if (!updateLocationsDisplayed && toursLocationsStatusUpdate[currentTourName] == 1)
        {
            foreach (GameObject g in gameObjectsList)
            {
                g.Destroy();
            }
            gameObjectsList.Clear();
            Dictionary <string, ArrayList> toursLocations = s.getToursLocationDictionary();
            ArrayList updatedLocations = toursLocations[currentTourName];
            updateLocationsList(updatedLocations);
        }
    }
    public void deleteFromArrayList(string deleteLocation)
    {
        singleton = Singleton.Instance();
        string tourName = singleton.getTourName();

        PSLocationArraySingleton       psObject       = PSLocationArraySingleton.Instance();
        Dictionary <string, ArrayList> toursLocations = psObject.getToursLocationDictionary();

        print("Deleting location in tour: " + tourName);
        ArrayList locations = toursLocations[tourName];

        print("Deleting locations: " + deleteLocation);
        locations.RemoveAt(locations.IndexOf(deleteLocation));

        toursLocations[tourName] = locations;
        Dictionary <string, int> toursLocationsStatusUpdate = psObject.getToursLocationsUpdateStatusDictionary();

        toursLocationsStatusUpdate[tourName] = 1;
    }
    public void onSave()
    {
        PSLocationArraySingleton s = PSLocationArraySingleton.Instance();
        Dictionary <string, int> toursLocationsStatusUpdate = s.getToursLocationsUpdateStatusDictionary();

        singleton = Singleton.Instance();
        string currentTourName = singleton.getTourName();

        // updating location of the tour in dictionary, and setting update status in dictionary

        Dictionary <string, ArrayList> toursLocations = s.getToursLocationDictionary();

        toursLocations[currentTourName]             = locations;
        toursLocationsStatusUpdate[currentTourName] = 1;
        if (sharedLocationName != null)
        {
            singleton.addSharedLocation(sharedLocationName, sharedLocationCoordinates);
        }

        SceneManager.LoadScene("DeptTourLoc");
    }