Heap space exhausted - solution and why

explode (1).dg (81.0 KB)

explode (1).z8 (162.6 KB)

Here’s my current best attempt: for me, this reliably crashes on “x wing” even though there are only three “wing” objects in the game and none are in the starting room… BUT it only crashes if I compile with the maximum heap space size. :upside_down_face: