public void addEnd(Location l)
    {
        if (locationEnd != null)
        {
            Location[] newEnd = new Location[locationEnd.length + 1];

            newEnd[locationEnd.length] = l;
            for (int x = 0; x < locationEnd.length; x++)
            {
                newEnd[x] = locationEnd[x];
            }
            locationEnd = newEnd;

        } else
        {
            Location[] newEnd = new Location[1];
            newEnd[0] = l;
            locationEnd = newEnd;

        }

    }