Printing algorithm | ScratchStats