refactoring the_board_is_full? method