Made check_board function private.