def is_player(player, pos1, pos2, board):
    """
    Function to check if 2 positions have the player on them
    :param player: 1/2
    :param pos1: position
    :param pos2: position
    :return: boolean value
    """
    if board[pos1] == player and board[pos2] == player:
        return True
    else:
        return False