currBlock.color = white;
There is no “color” property for these objects. Try this instead:
currBlock.fillColor = white;
Same for a few other instances of currBlock.color throughout your experiment.
If that doesn’t work, or if it’s not currently working for the line color, you could also try:
currBlock.setFillColor(white);
and the same for line color.