Chandra study of the eclipsing M dwarf binary, YY Gem