Edits

Works on test 1, a cube file.
Test 2 breaks due to loss of stack integrity when boxes are rotating
since they refer to the same object, will change rotate to return a new
box, fingers crossed :)