Corrected bug with rotating cubes