made rects and colors static
separate generate method
refactoring