const randCoord = () => {
return {
left: Math.floor(Math.random() * (areaWidth - 120)),
top: Math.floor(Math.random() * (areaHeight - 120))
}
}
const setTanks = () => {
let div = document.createElement('div');
div.classList.add('tank');
let coords = randCoord();
div.style.left = `${coords.left}px`;
div.style.top = `${coords.top}px`;
areaEnemy.append(div);
}