/**
 * Update the design by removing specified elements from the list
 */
fun updateDesignUponRemoval(designElements: MutableList<String>, elementsToRemove: List<String>): MutableList<String> {

    elementsToRemove.forEach { element ->
        if (element in designElements) {
            designElements.remove(element)
        }
    }
    return designElements
}
/**
 * Update the design by removing specified elements from the list
 */
fun updateDesignUponRemoval(designElements: MutableList<String>, elementsToRemove: List<String>): MutableList<String> {
/**
 * Update the design by removing specified elements from the list
 */
fun updateDesignUponRemoval(designElements: MutableList<String>, elementsToRemove: List<String>): MutableList<String> {

    elementsToRemove.forEach { element ->
        if (element in designElements) {
            designElements.remove(element)
        }
    }
    return designElements
}