Added a line in the new clear tiles method to behave as the old one did,
removed some unused code in the color swatch class