Touching the edges, a transfer of conductive energy occurs, similar technology to that of a modern touch screen mobile phone charging. When the cubes stop touching, they stop shining.