@@ -0,0 +1,2517 @@
+import javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.*;%0Aimport javax.swing.ImageIcon;%0A%0Apublic class Game extends JFrame implements ActionListener%7B%0A    %0A    public final int Rows = 13;%0A    public final int Columns = 9;%0A    public JButton buttons%5B%5D%5B%5D = new JButton%5BRows%5D%5BColumns%5D;%0A    public JPanel panel;  %0A    public JFrame window;%0A        %0A    public Game()%7B%0A        %0A// Create the window for the game//%0A        JFrame window = new JFrame();%0A        panel = new JPanel();%0A        panel.setLayout(new GridLayout(13,9));%0A        %0A        setSize(288,416);%0A        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        %0A                %0A// Add buttons to the window with a loop creating a 2D array//%0A        for(int i =0;i%3CRows;i++)%0A        %7B%0A            for(int j=0;j%3CColumns;j++) %0A            %7B%0A                if (i == 12)%0A                %7B%0A                    buttons%5Bi%5D%5Bj%5D = new JButton(new ImageIcon(%22bank1.jpg%22)); %0A                    %0A// Bottom row of game to have this this image on each button//%0A                    %0A                    %0A                %7D%0A                else%0A                if (i ==0)%0A                %7B%0A                    buttons%5Bi%5D%5Bj%5D = new JButton(new ImageIcon(%22bank2.jpg%22));    %0A                    %0A// Top row of game to have this this image on each button//%0A%0A                %7D%0A                 else %0A                %7B                  %0A                    buttons%5Bi%5D%5Bj%5D = new JButton(new ImageIcon(%22water1.jpg%22)); %0A%0A// All other buttons will be water//%0A%0A                    %0A                %7D%0A                    buttons%5Bi%5D%5Bj%5D.addActionListener(this);%0A                    panel.add(buttons%5Bi%5D%5Bj%5D);%0A                %0A// Add action listeners to buttons, to be able to interact//%0A%0A                %0A          %7D%0A        %7D%0A        this.add(panel);%0A        %0A        %0A        setVisible(true);%0A    %7D    %0A    %0A    public void level1()%0A    %7B%0A        buttons%5B12%5D%5B2%5D.setIcon(new ImageIcon(%22stump2_man.jpg%22));%0A        buttons%5B10%5D%5B2%5D.setIcon(new ImageIcon(%22stump1.jpg%22));%0A        buttons%5B10%5D%5B5%5D.setIcon(new ImageIcon(%22stump1.jpg%22));%0A        buttons%5B8%5D%5B5%5D.setIcon(new ImageIcon(%22stump1.jpg%22));%0A        buttons%5B5%5D%5B5%5D.setIcon(new ImageIcon(%22stump1.jpg%22));%0A        buttons%5B5%5D%5B5%5D.setIcon(new ImageIcon(%22stump1.jpg%22));%0A%0A%0A%0A%0A        %0A// Here I will different images to the 2D array //     %0A        %0A    %7D%0A    public void actionPerformed(ActionEvent e)%0A    %7B%0A        %0A    %7D%0A    public static void main(String args%5B%5D)%0A    %7B%0A        Game game = new Game();%0A        game.level1(); %0A        %0A    %7D%0A%7D

Create first for loops