def check_if_hits(row, column, fleet):
    """
    This method checks if the shot of the human player at the square represented by row and column
    hits any of the ships of fleet.
    :param row: int
    :param column: int
    :param fleet: list
    :returns result: bool - True if so and False otherwise
    """
    result = False
    for i in range(len(fleet)):
        # check if guess already in hits set:
        if (row, column) in fleet[i][4]:
            break
        for j in range(fleet[i][3]):
            # if horizontal
            if fleet[i][2]:
                if row == fleet[i][0] and column == fleet[i][1] + j:
                    result = True
                    break
            # if vertical
            else:
                if row == fleet[i][0] + j and column == fleet[i][1]:
                    result = True
                    break
    return result