Levelboxes working!

So frustrating, but now everything seems good. Bugs involved off-by-one
index checks and testing for non-null (bad) vs. not equal to zero
(good).