Law says that a yellow is given if a direct free kick is conceded in a reckless manner. Generally shirt pulling is a foul and get on with it, unless there’s a promising attack being broken up, which is covered by another section of the law.
Overall the point is that the game was far better...