public void notifyListeners() {
        if (!boardListener.isEmpty()) {
            for (int i = 0; i < boardListener.size(); i++) {
                boardListener.get(i).boardChanged();
            }
        }
    }