public static void main(String args[]) throws InvocationTargetException, InterruptedException {
        new Thread() {
            public void run() {
                CardFrame frame = new CardFrame();
                try {
                    Thread.sleep(200);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                frame.restartGame();
            }
        }.start();
//        final CardFrame[] frame = new CardFrame[1];
//
//
//        frame[0].startGame();
    }