private void DeletePair(Grid prev, Grid current) { LinkedList temp = new LinkedList(); temp.Add(prev); for (int i = 0; i < pcount; i++) { temp.AddAll(path[i]); path[i].Clear(); } AnimateThread thread = new AnimateThread(temp); thread.Tag = this; thread.Start(); }