properties, createFlakes, removeFlakes added as well as array to hold the flakes
working example, some cleaning needed