public int setShape(Point p, Shape s) {
		int[] rowsAffected = new int[s.getHeight()];
		for (int row = 0; row < s.getWidth(); row++) {
			for (int col = 0; col < s.getHeight(); col++) {
				if (s.checkSlot(row, col)) {
					setSlot(p.y + row, p.x + col, s.getType());
					rowsAffected[row] = p.y + row;
				}
			}
		}
		int rowsDeleted = 0;
		for (int i = 0; i < rowsAffected.length; i++) {
			if (isRowFull(rowsAffected[i])) {
				removeRow(rowsAffected[i]);
				rowsDeleted++;
			}
		}
		return rowsDeleted;
	}