public LocationSet[] deleteIndex(LocationSet[] o, int i)
    {

        if (o.length > 1)
        {
            LocationSet[] newEnd = new LocationSet[o.length - 1];
            for (int x = 0; x < i; x++)
            {
                newEnd[x] = o[x];
            }
            for (int x = i; x < o.length - 1; x++)
            {
                newEnd[x] = o[x + 1];
            }

            return newEnd;
        } else
        {
            return null;
        }
    }