change check_board function

change check_board function