Playing with pivoting squares and cubes