function spawnObjects(objectsName){
for(let i = 0; i < objectsName.length; i++){
let spawnContainer = document.createElement('div');
spawnContainer.id = objectsName + 'Container' + [i];
document.getElementById(objectsName + 'Block').prepend(spawnContainer);
let spawnCheckbox = document.createElement('input');
spawnCheckbox.type = 'checkbox';
spawnCheckbox.checked = true;
spawnCheckbox.id = objectsName + 'Checkbox' + [i];
document.getElementById(objectsName + 'Container' + [i]).prepend(spawnCheckbox);
let spawnText = document.createElement('h4');
spawnText.id = objectsName + 'Text' + [i];
spawnText.innerHTML = objectsName[i];
document.getElementById(objectsName + 'Container' + [i]).append(spawnText);
}
}