@SuppressWarnings("unused")
    // refreshGui
    private void refreshGui() {
        Deck deck = Constant.Runtime.HumanDeck[0];
        if (deck == null) //this is just a patch, i know
            deck = new Deck(Constant.Runtime.GameType[0]);

        topModel.clear();
        bottomModel.clear();

        Card c;
        //ReadBoosterPack pack = new ReadBoosterPack();
        for (int i = 0; i < deck.countMain(); i++) {
            c = AllZone.getCardFactory().getCard(deck.getMain(i), AllZone.getHumanPlayer());

            //add rarity to card if this is a sealed card pool
            //if(Constant.Runtime.GameType[0].equals(Constant.GameType.Sealed))
            //	c.setRarity(pack.getRarity(c.getName()));

            bottomModel.addCard(c);
        }//for

        if (deck.isSealed() || deck.isDraft()) {
            //add sideboard to GUI
            for (int i = 0; i < deck.countSideboard(); i++) {
                c = AllZone.getCardFactory().getCard(deck.getSideboard(i), AllZone.getHumanPlayer());
                //c.setRarity(pack.getRarity(c.getName()));
                topModel.addCard(c);
            }
        } else {
            for (Card loopCard : AllZone.getCardFactory()) {
                topModel.addCard(loopCard);
                c = loopCard;  // this might not be necessary
            }
        }

        topModel.resort();
        bottomModel.resort();
    }////refreshGui()