void rotateFaceZ(boolean clockwise) {
		int[] indexMap = getIndexMap();

		int t = turnedFaces[indexMap[Cube.TOP]];
		int b = turnedFaces[indexMap[Cube.BOTTOM]];
		int l = turnedFaces[indexMap[Cube.LEFT]];
		int r = turnedFaces[indexMap[Cube.RIGHT]];
		if(clockwise) {
			turnedFaces[indexMap[Cube.TOP]] = r;
			turnedFaces[indexMap[Cube.LEFT]] = t;
			turnedFaces[indexMap[Cube.BOTTOM]] = l;
			turnedFaces[indexMap[Cube.RIGHT]] = b;
		} else {
			turnedFaces[indexMap[Cube.TOP]] = l;
			turnedFaces[indexMap[Cube.LEFT]] = b;
			turnedFaces[indexMap[Cube.BOTTOM]] = r;
			turnedFaces[indexMap[Cube.RIGHT]] = t;
		}
	}