I don't specifically know how it works, but I do know that points are awarded for successful snookers resulting in fouls. So even though there are only 13 points left, the player with less points can still win with successful snookers.
Alex lost a frame in the first round when his opponent needed three snookers.
( I watched it)