public static Shape getRandomShape() {
      Shape shape = new Shape(0, 0);

      // shape.setColor(getRandomColor()); // Doesn't work.

      // random number between 0 (inclusive) and 7 (exclusive)
      switch (random.nextInt(7)) {
         case 0:
            shape = new IShape(2, 4);
            break;
         case 1:
            shape = new JShape(0, 4);
            break;
         case 2:
            shape = new LShape(0, 5);
            break;
         case 3:
            shape = new OShape(1, 4);
            break;
         case 4:
            shape = new SShape(1, 4);
            break;
         case 5:
            shape = new TShape(1, 4);
            break;
         case 6:
            shape = new ZShape(1, 5);
            break;
      }

      return shape;
   }