Mark Allen produced a moment of magic to play a double to help him take a frame against Yan Bingtao at the German Masters.