Make sure cursorX + j < WIDTH to avoid running off the end of the line.