def connected_four(position) -> bool:
    """
    Return True, when the player has connected 4
    Arguments:
        position: bit representation of the board with players pieces
    Return:
        bool: True for 4 connected
    """
    # Horizontal check
    m = position & (position >> 7)
    if m & (m >> 14):
        return True
    # Diagonal \
    m = position & (position >> 6)
    if m & (m >> 12):
        return True
    # Diagonal /
    m = position & (position >> 8)
    if m & (m >> 16):
        return True
    # Vertical
    m = position & (position >> 1)
    if m & (m >> 2):
        return True
    # Nothing found
    return False