the red cube are spawning random over x axis, i tried not to overlap the cubes but still they are overlapping.
Thanks for the review I will try to fix that