//Rotates the piece along the Z Axis void rotateZAxis(int direction) { removeBlockPositions(currentPiece); currentPiece.rotateZAxis(direction); addBlockPositions(currentPiece); }