add checkerboard color function