@Override
    public void actionPerformed(ActionEvent e) {
        final String source = e.getActionCommand();

        switch (source) {
            case "Easy":
                App.getField().setDifficulty(0);
                break;
            case "Medium":
                App.getField().setDifficulty(1);
                break;
            case "Hard":
                App.getField().setDifficulty(2);
                break;
            case "Size":
                dialog().setVisible(true);
                break;
            case "Test":
                final TestField testField = new TestField();
                testField.runTest();
                break;
            case "Restart":
                App.getField().reset();
                break;
        }

    }