Rotation for T-piece implemented. Also fixed some minor bugs with the previous.