public void rotate() {
        int tempX, tempY;
        switch (this.currentRotation) {
            case EAST :
                for (int i = 0; i < blocks.length; i++) {
                    tempX = blocks[i].getXCoord();
                    tempY = blocks[i].getYCoord();
                    blocks[i].setXCoord(tempY);
                    blocks[i].setYCoord(tempX);
                }
                this.currentRotation = Rotation.NORTH;
                break;
            case NORTH :
                for (int i = 0; i < blocks.length; i++) {
                    tempX = blocks[i].getXCoord();
                    tempY = blocks[i].getYCoord();
                    blocks[i].setXCoord(tempY);
                    blocks[i].setYCoord(tempX);
                }
                this.currentRotation = Rotation.WEST;
                break;
            case WEST :
                for (int i = 0; i < blocks.length; i++) {
                    tempX = blocks[i].getXCoord();
                    tempY = blocks[i].getYCoord();
                    blocks[i].setXCoord(tempY);
                    blocks[i].setYCoord(tempX);
                }
                this.currentRotation = Rotation.SOUTH;
                break;
            case SOUTH :
                for (int i = 0; i < blocks.length; i++) {
                    tempX = blocks[i].getXCoord();
                    tempY = blocks[i].getYCoord();
                    blocks[i].setXCoord(tempY);
                    blocks[i].setYCoord(tempX);
                }
                this.currentRotation = Rotation.EAST;
                break;
        }

    }