Images overlapping (Solved)

Here’s my code. It works, but the images it creates overlaps the texts it draws

texts = {“i will always love you”,“be with me forever sonny”,“eat mor chicken”}
grandpas = {}

function draw()
background(0, 0, 0, 255)
stroke(0, 0, 0, 255)
text(texts[math.random(1,#texts)],499,255)
local element = {math.random(WIDTH),math.random(HEIGHT)}
table.insert(grandpas,element)
for i,v in pairs(grandpas) do
sprite(“Project:wow”,v[1],v[2],230,230)
end

end

Lol forgive those texts in the table, I was just playing around with codea :wink:

Never mind, I fixed it by creating the text after creating the sprites :slight_smile: