Ding Liren was on top of the chess world; then, like some before him, he started to wilt.