Check right
k = 0 NEW_LINE while inBounds ( i , j + + + k ) : NEW_LINE INDENT if board [ i ] [ j + k ] == c : NEW_LINE INDENT return True NEW_LINE DEDENT if board [ i ] [ j + k ] != ' - ' : NEW_LINE INDENT break NEW_LINE DEDENT DEDENT