Check if a line is full before trying to add something
Modified line to be more self contained and make use of it
Start working on the case of standalone lines