@Override
    public void actionPerformed(ActionEvent event)
    {
        String actionCommand = event.getActionCommand();
        if (actionCommand == ChessGameView.NEW_GAME_MENU_ITEM) {
            setupNewChessGame();
        } else if (actionCommand == ChessGameView.CLOSE_MENU_ITEM) {
            System.exit(0);
        } else if (actionCommand == ChessGameView.SHOW_HIGHLIGHTING_MENU_ITEM) {
            view.showHighlighting();
            if (pieceIsSelected)
                highlightValidMoves();
        } else if (actionCommand == ChessGameView.HIDE_HIGHLIGHTING_MENU_ITEM) {
            view.hideHighlighting();
            if (pieceIsSelected)
                currentlySelectedButton.selectSpace();
        } else if (actionCommand == ChessGameView.PRINT_BOARD_MENU_ITEM) {
            modelBoard.printBoard();
        // Clicked one of the chess spaces
        } else if (!gameIsOver) {
            buttonClickedAction((ChessSpaceButton) event.getSource());
        }
    }