working random boxy generator with color change