Improves mergeCells function to support left