public BattleWindow(ArrayList<SimulatorRobot> r, String theme) {

        setSize(1000, 628);          
        setLocationRelativeTo(null);
        setLayout(new BorderLayout());
        
        switch(theme){
            
            case "Desert": ii = new ImageIcon(this.getClass().getResource("/resources/images/scenarios/desert.png"));
                break;
                
            case "Forest": ii = new ImageIcon(this.getClass().getResource("/resources/images/scenarios/forest.png"));
                break;
            
            case "Spacial": ii = new ImageIcon(this.getClass().getResource("/resources/images/scenarios/spacial.jpg"));
                break;
            
            case "Sea": ii = new ImageIcon(this.getClass().getResource("/resources/images/scenarios/sea.png"));
                break;
                        
            default: ii = new ImageIcon(this.getClass().getResource("/resources/images/scenarios/forest.png"));
                break;                  
            
        }
        
        JLabel background=new JLabel(new ImageIcon(ii.getImage()));
	add(background);
	background.setLayout(new FlowLayout());
            
        board = new Board(r, theme);
        board.setLayout(new BorderLayout());
        
        board.setBounds(0, 0, 800, 600);

        board.add(background);

        display = new StatesDisplay(r);

        display.setLayout(null);
        display.setBounds(
                Board.getWIDTH(),
                Board.getHEIGHT()-Board.getHEIGHT(),
                this.getWidth()-Board.getWIDTH(),
                Board.getHEIGHT());
        display.setBackground(Color.LIGHT_GRAY);

        getContentPane().setLayout(null);
        this.add(board);
        this.add(display);

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(false);
        setVisible(true);

        timer = new Timer(5, this);
        timer.start();
    }