Before a puzzle goes live, the server plays it, each round in the fewest moves possible. Each round's count is the moves you get: the counter starts there and counts down, and a round can only be finished within it.
So every finished round took the fewest moves, on every tier. What changes is how you got there: on your own, after a Check, or shown the way. That is what your squares record. Some older boards have walls. The walls block slides, but they never make a round longer.
Undo hands a move back, so running out is never the end of a round. Rewind to where you went the long way and find the shorter route.