use rotation matrix for piece rotation