Instituted shape swapping and fragmentation

Attached those functions to the relevant buttons.
Smash mode is a toggle (between positioning and smashing).