I don't stop them from solving the puzzles during class because I understand why they need them: solving Rubik's cubes help them to calm the monsters that constantly pull for attention and gratification. These puzzles give them the element of control over a strong emotion: anxiety.
If you asked me what the number one problem facing my students right now, I would say - without hesitation - it's anxiety.
It didn't used to be this way.