public void placeMines(BoardModel boardModel) {
        int addedMines = 0;
        while (addedMines < boardModel.getNumberOfMines()) {
            int x = getRandomInt(boardModel.getBoardWidth());
            int y = getRandomInt(boardModel.getBoardHeight());
            if (!boardModel.getBoard()[x][y].isMine()) {
                boardModel.getBoard()[x][y].setContent("#");
                addedMines++;
            }
        }
    }