public static Board createCompleteBoard(int count, Device.Type... deviceType) throws IOException {


        Board newBoard = createBoard();
        Device device;

        for (int i = 0; i < count; i++) {
            String nameDevise = deviceType[rnd.nextInt(deviceType.length)].name();

            switch (nameDevise) {
                case "DIOD": {
                    device = createDiod();
                    newBoard.establishElement(device);
                }
                break;
                case "TRANSISTOR": {
                    device = createTransistor();
                    newBoard.establishElement(device);
                }
                break;
                case "CHIP": {
                    device = createChip();
                    newBoard.establishElement(device);
                }
                break;
                case "RESISTOR": {
                    device = createResistor();
                    newBoard.establishElement(device);
                }
                break;
            }
        }
        return newBoard;
    }