if ((int)hist.get(8).get(i) != -1)
                         temp.set((int)hist.get(8).get(i), deck.get(i));