if(index1 != 7)   //if the card is not from the pile
                         {
                              pile.get(index1).remove(pile.get(index1).size()-1);   //remove from old pile
                              if (index1 >7)
                                   score += scoringSystem[scoreSystemUsed][4];   //add to score