function block(i, j, bSize, type) {
            for(var b1 = 0; b1 < bSize; b1++) {
                for(var b2 = 0; b2 < bSize; b2++) {
                    map[i + b1][j + b2] = type;
                }
            }
        }
//make a block using a point as upper left
make a block using a point as upper left
make a block using a point as upper left
function block(i, j, bSize, type) {
            for(var b1 = 0; b1 < bSize; b1++) {
                for(var b2 = 0; b2 < bSize; b2++) {
                    map[i + b1][j + b2] = type;
                }
            }
        }
function block ( i , j , bSize , type ) { for ( var b1 = 0 ; b1 < bSize ; b1 ++ ) { for ( var b2 = 0 ; b2 < bSize ; b2 ++ ) { map [ i + b1 ] [ j + b2 ] = type ; } } }
make a block using a point as upper left
make a block using a point as upper left