let filed = document.createElement('div');
document.body.appendChild(filed);
filed.classList.add('gBody');
for(let i = 0; i < 1800; i++){
let block = document.createElement('div');
filed.appendChild(block);
block.classList.add('blocks');
}
block.onclick = 'block' + i;
for(let i = 0; i < 18; i++){
let block = document.createElement('div');
field.appendChild(block);
block.classList.add('blocks');
block.addEventListener('click', event => onClick(event, i));
}