Numbers inside squares determine number of borders touched on by line that goes from bottom left to up right corner.