private void generate() {

		Random r = new Random();

		int i = 1 + r.nextInt(6);

		switch (i) {

		case 1:
			next = new IShape();
			break;

		case 2:
			next = new JShape();
			break;

		case 3:
			next = new LShape();
			break;

		case 4:
			next = new OShape();
			break;

		case 5:
			next = new ZShape();
			break;

		case 6:
			next = new TShape();
			break;

		case 7:
			next = new SShape();
			break;

		}

		next.setRandomColor();

	}