public ArrayList<SimulatorRobot> deploy() throws Exception {

        int W = Board.WIDTH - 30;
        int H = Board.HEIGHT - 30;

        posXs.add(Math.random() * W + 1);
        posYs.add(Math.random() * H + 1);

        for (int i = 0; i < this.selectedRobots.getSize(); i++) {

            RobotPiece body = null;
            RobotPiece turret = null;
            RobotPiece radar = null;

            if ("Sea".equals(this.theme)) {
                body = new RobotPiece("/resources/images/boats/Boat.png", posXs.get(i), posYs.get(i), 0, 0);
                turret = new RobotPiece("/resources/images/boats/boatTurret.png", posXs.get(i), posYs.get(i), 8, -10);
                radar = new RobotPiece("/resources/images/boats/boatRadar.png", posXs.get(i), posYs.get(i), 7, 9);
            } else {
                body = new RobotPiece("/resources/images/realBody.png", posXs.get(i), posYs.get(i), 0, 0);
                turret = new RobotPiece("/resources/images/realTurret.png", posXs.get(i), posYs.get(i), 8, -10);
                radar = new RobotPiece("/resources/images/realRadar.png", posXs.get(i), posYs.get(i), 7, 9);
            }

            String[] nameRobotSplit = selectedRobots.get(i).toString().split("\\.");
            String nameRobot = nameRobotSplit[0];

            tposXs = Math.random() * W + 1;
            tposYs = Math.random() * H + 1;

            for (int j = 0; j < posXs.size(); j++) {

                Line ln = new Line(posXs.get(j), posYs.get(j), posXs.get(j) + 20, posYs.get(j) + 20);

                while (ln.contains(tposXs, tposYs)) {
                    tposXs = Math.random() * W + 1;
                    tposYs = Math.random() * H + 1;
                }
            }

            this.posXs.add(tposXs);
            this.posYs.add(tposYs);
            System.out.println(this.posXs.size());

            try {
                Class robotClass = Class.forName("resources.robots." + nameRobot);
                try {
                    Constructor robotConstructor = robotClass.getConstructor(
                            new Class[]{
                                double.class,
                                double.class,
                                RobotPiece.class,
                                RobotPiece.class,
                                RobotPiece.class
                            }
                    );
                    this.robots.add((SimulatorRobot) robotConstructor.newInstance(
                            this.posXs.get(i),
                            this.posYs.get(i),
                            body,
                            turret,
                            radar
                    ));
                } catch (NoSuchMethodException e) {
                }
            } catch (ClassNotFoundException e) {
            }
        }

        return this.robots;

    }