public static void main (String[] args) {
        Memorygame memoryGame = null;
       
       /* getCommand();
        displayInstructions();
        MainMenuView mainMenu = new MainMenuView();*/
        
            try {
                memoryGame = new Memorygame();
            //mainMenu.executeCommands(null);  /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    Memorygame.mainFrame = new MainFrame();
                    Memorygame.mainFrame.setVisible(true);
                }
            });
        
        }
            
            
            
     catch (Throwable ex) {     
            ErrorType.displayErorrMsg("Unexpected error: " + ex.getMessage());
            ErrorType.displayErorrMsg(ex.getStackTrace().toString());           
        } 
        finally {
            if (Memorygame.mainFrame != null) {
                Memorygame.mainFrame.dispose();
            }
        }
            }