Distributed prediction of unsafe reconfiguration scenarios of modular robotic Programmable Matter