public void print() {
        int nblock = 0;
        for (int i = 5; i >= -5; i--) {
            for (int j = -5; j <= 5; j++) {
                if (this.exist(j - this.getMovedX(), i - this.getMovedY())) {
                    System.out.print("X");
                    if (nblock < blocks.length-1)
                        nblock++;
                }
                else
                if (i == 0)
                    System.out.print("-");
                else
                if (j == 0)
                    System.out.print("|");
                else
                    System.out.print(" ");
            }
            System.out.println();
        }
    }