Correctly undo/redo and clear all cell colors