Mechanical puzzle cubes