A save code example. Press the up and down arrows to change the color of the blocks. it works even if you restart the program.
Just an idea