public void setNext(String type, int rotation) {

		if (type.equals("IShape")) {

			next = new IShape();

		}

		if (type.equals("JShape")) {

			next = new JShape();

		}

		if (type.equals("LShape")) {

			next = new LShape();

		}

		if (type.equals("OShape")) {

			next = new OShape();

		}

		if (type.equals("SShape")) {

			next = new SShape();

		}

		if (type.equals("TShape")) {

			next = new TShape();

		}

		if (type.equals("ZShape")) {

			next = new ZShape();

		}

		// Rotate to correct angle
		while (next.getRotation() != rotation) {
			next.rotate();
		}

		// Set correct position
		next.moveLeft();
		next.moveLeft();
		next.moveLeft();

	}