public static void unsetFlag(BoardModel boardModel, Point point) {
        Cell currentCell = boardModel.getBoard()[point.getPosX()][point.getPosY()];

        if (boardModel.getNumberOfFlags() < boardModel.getNumberOfMines() && currentCell.isFlagged()) {
            currentCell.setFlagged(false);
            boardModel.setNumberOfFlags(boardModel.getNumberOfFlags() + 1);
        }
    }