added function to modify the blocks colors