function buildBoard() {
    var board = [];
    for (var i = 0; i < gLevel.SIZE; i++) {
        board[i] = []
        for (var j = 0; j < gLevel.SIZE; j++) {
            board[i][j] = {
                minesAroundCount: 0,
                isShown: false,
                isMine: false,
                isMarked: false
            }
        }
    }
    gBoard = board; // @CR: no need to do this, at line 38 you do the same
    return board;
}
// Builds the board   Set mines at random locations Call setMinesNegsCount() Return the created board 
Builds the board   Set mines at random locations Call setMinesNegsCount() Return the created board
Builds the board Set mines at random locations Call setMinesNegsCount () Return the created board
function buildBoard() {
    var board = [];
    for (var i = 0; i < gLevel.SIZE; i++) {
        board[i] = []
        for (var j = 0; j < gLevel.SIZE; j++) {
            board[i][j] = {
                minesAroundCount: 0,
                isShown: false,
                isMine: false,
                isMarked: false
            }
        }
    }
    gBoard = board; 
    return board;
}
function buildBoard ( ) { var board = [ ] ; for ( var i = 0 ; i < gLevel . SIZE ; i ++ ) { board [ i ] = [ ] for ( var j = 0 ; j < gLevel . SIZE ; j ++ ) { board [ i ] [ j ] = { minesAroundCount : 0 , isShown : false , isMine : false , isMarked : false } } } gBoard = board ; return board ; }
Builds the board   Set mines at random locations Call setMinesNegsCount() Return the created board
Builds the board Set mines at random locations Call setMinesNegsCount () Return the created board
// @CR: no need to do this, at line 38 you do the same