Draw the height-based borders to clarify rendering

This actually seems to be mostly working. I see some occasional
borders that should not be drawn, though, so there is still some
debugging left to do.