question: public void collapseBuilding ( Building bldg ) { buildings . removeElement ( bldg ) ; Enumeration < Coords > bldgCoords = bldg . getCoords ( ) ; while ( bldgCoords . hasMoreElements ( ) ) { final Coords coords = bldgCoords . nextElement ( ) ; collapseBuilding ( coords ) ; } }
target:  The given building has collapsed. Remove it from the board and replace it with rubble.