We don't need to traverse all the blocks to find out the right one. We can just use blockForLine to do that.