function insertImage()
{
document.querySelectorAll('.box').forEach(image => {
if(image.innerText.length !==0 ){
if (image.innerText == 'Wpawn' || image.innerText =='Bpawn'){
image.innerHTML = `${image.innerText} <img class='all-img all-pown'
src="${image.innerText}.png" alt=""`
image.stule.cursor = 'pointer'
}
else{
image.innerHTML = `${image.innerText} <img class='all-img'
src="${image.innerText}.png" alt=""`
image.stule.cursor = 'pointer'
}
}
})
}
insertImage()