public static void main(String[] args) {

        GUI2048 game = new GUI2048();
        Board board = new Board(game);
        if (args.length != 0 && args[0].matches("[0-9]*")) {
            Board.GOAL = Value.of(Integer.parseInt(args[0]));
        }
        KeySetting kb = KeySetting.getkeySetting(board);
        board.addKeyListener(kb);
        game.add(board);
        
        game.setLocationRelativeTo(null);
        game.setVisible(true);
    }