Refactor printLine() to be recursive in the same way as printArea().