Added animation capabilities to cubes