(function(){
function start(){
const game=document.querySelector("#game");
if(!game){ return; }
const board=[ [2,0,0,0], [0,2,0,0], [0,0,0,0], [0,0,0,0] ];
game.innerHTML="";
board.forEach(function(row){
row.forEach(function(value){
const cell=document.createElement("div");
cell.classList.add("cell");
if(value){ cell.textContent=value; }
game.appendChild(cell);
});
});
}
if(document.readyState==="loading"){ document.addEventListener("DOMContentLoaded",start); }else{ start(); }
})();















