Yeah it only ends when you run out of moves (ie. don't reach the target soon enough) or when the board is completely filled.