modified code so that there are two cubes spinning