added the option of generating random colors to each cell