Implemented BGM and rotation for Z-piece and Z-reverse.