Implemented LineInfo.addToCellPath and made the program use it