@Override
	public void setSizeOfField(int size) {
		if (size < sizeOfField) {
			int diference = sizeOfField - size;
			LinkedList<Integer> keys = new LinkedList<Integer>();
			for (int i = 0; i < diference; i++) {
				keys.add(i);
			}

			for (Integer key : keys) {
				this.getCardInFieldGame().remove(key);
			}
			sizeOfField = size;
		} else if (size > sizeOfField) {
			LinkedList<ICard> list = new LinkedList<ICard>();
			list.addAll(getUnusedCards());

			for (int key = 0; key < size; key++) {
				if (!list.isEmpty()
						&& !getCardInFieldGame().keySet().contains(key)) {
					this.getCardInFieldGame().put(key, list.getFirst());
					list.removeFirst();

				}
			}
			sizeOfField = size;
		}
	}