cube moving and rotate