private void rotate(boolean clockwise) {

		clear();
		shape.rotate(clockwise);
		// lefts
		while (currentX + shape.getMostWest() < 0) {
			currentX++;
		}
		// right
		while (currentX + shape.getMostEast() > width - 1) {
			currentX--;
		}
		// down
		while (currentY + shape.getMostSouth() > height - 1) {
			currentY--;
		}
		setShapeInMatrix();
	}