 		painter.drawBendRails start, start.compound(@exitTransform()), @flip
 		painter.drawStraightRails start.compound(@connections.C.transform()).compound(new Transform(0,0,180)), @size
 		super painter, start
+
+	clone: (newsection) ->
+		result = new Merge(@)
+		result.setSection newsection
+		result
 
 class Crossover extends Piece
 	setSection: (section) =>

		painter.drawBendRails start, start.compound(@exitTransform()), @flip
		super painter, start

class Split extends Piece
	setSection: (section) ->
		@connections.B =


		clone: (newtrack) ->
			result = new Section(newtrack, @transform)
			piece.clone(result) for piece in @_pieces
			result

		add: (piece) ->
