function to add random shapes
refactored random shapes and fixed premature fade-out