public void actionPerformed(ActionEvent e) {
        Object action = e.getSource();

        if (action == mntmRestartLevel) {
            if(gp != null) {
                gp.restartLevel();
                gp.getGameState().setScore(0);
            }

        }  else if (action == mntmLevelSelect) {
            gotoLevelSelect();
            if (gp != null) {
                gp.getGameState().setScore(0);
            }
        } else if (action == mntmExit) {
            if (gp != null){
                getScore();
            }
            frame.dispose();
            System.exit(0);
        } else if (action == mntmHelp) {
            JOptionPane.showMessageDialog(null, helpMessage, "Help", JOptionPane.PLAIN_MESSAGE);
        }
    }