create logic checking functions for rows, boxes, and columns