Improved loops, now randomises pixles