// this method returns the current location of the player in a location variable.
    public Location GetCurrentLocation()
    {
        Location loc = new Location();
        int tester;
        int i = 0;
        if (LocationList.Count >= 1)
        {
            while (i > -1)
            {
                loc = LocationList[i];
                tester = loc.getRoomLocatior();
                if (playerLocation == tester)
                {
                    i = -2;

                }

                i++;
            }
        }

        return loc;
    }