document.querySelector('.buy').addEventListener('click', () => { if (nothingness < 10) return; nothingness -= 10; cubePos.push([Math.random() * 1000 - 500, Math.random() * 1000 - 500, Math.random() * 30 - 200, Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 ]) })