[functions.checkerboard] moved definition to header