How Does The Match Function Work