public CardShape getShape() {
		boolean[] open = new boolean[4];
		open[0] = getOpenings().isTop();
		open[1] = getOpenings().isRight();
		open[2] = getOpenings().isBottom();
		open[3] = getOpenings().isLeft();

		int indsum = 0;
		int anzop = 0;

		for (int i = 0; i < open.length; i++) {
			if (open[i]) {
				indsum += i;
				++anzop;
			}
		}
		if (anzop == 2 && indsum % 2 == 0) {
			return CardShape.I;
		} else if (anzop == 2 && indsum % 2 == 1) {
			return CardShape.L;
		} else {
			return CardShape.T;
		}
	}