Added support for clearing a line when it is fully constructed with pieces.