Sam Craigie got the better of Ding Junhui at the UK Championship, but there was a moment of controversy in frame eight.