public static void checkField(SubField field, int[] listID,
			int[] stopOnID) {

		for (int i = 0; i < listID.length; i++) {
			if (listID[i] == theField[field.x][field.y]) {
				int[] element = new int[2];
				element[0] = field.x;
				element[1] = field.y;
				listFields.add(element);
			}
		}
		
		for (int i = 0; i < stopOnID.length; i++) {
			if (stopOnID[i] == theField[field.x][field.y]) {
				field.endPoint = true;
			}
		}
	}