Works, but breaks if an identical block comes up when the length isn't controlled. Need a better length checker
More robust block comparisons (precompute block for comparison) and nicer printing