public static void newCardGroup(CardGroup cg,int[] cards){
  cg.clear();
  for (  int c : cards) {
    cg.addCard(cardsInPlay.get(Math.abs(c)),Math.signum(c) >= 0);
  }
}

public static void newCardGroup ( CardGroup cg , int [ ] cards ) { cg . clear ( ) ; for ( int c : cards ) { cg . addCard ( cardsInPlay . get ( Math . abs ( c ) ) , Math . signum ( c ) >= 0 ) ; } }
fill the cardgroup object
