if the makeGrass
( how i know from where you start it )
repeats you have to look where you start it.
if the loop
0 … many works and makes “many” objects OK
if the loop stucks because it hangs inside
while(collide(x,y,w,h)) randomSet();
need to do my above given new version what includes timeout and break loop many
so pls just run my latest version code as is
and see it can not create 120 rects because canvas too small so it stops between 95 … 105 about.