package com.mazurkevych.krysan;

public class Labyrinth {
private int test1;
public boolean test[];
}

package com.mazurkevych.krysan;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Labyrinth extends JPanel{

	private static final long serialVersionUID = 1L;
	
	public byte objectsPresent[][];

	public Labyrinth() {
		//1 - wall
		//0 - coin
		//2 - empty square
		//3 - big coin
		  objectsPresent = new byte[][]{{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
										{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
										{1,0,1,1,0,1,1,1,1,0,1,0,1,1,1,1,0,1,1,1,1,0,1},
										{1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1},
										{1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1},
										{1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1},
										{1,0,1,0,1,1,1,1,0,1,1,2,1,1,0,1,1,1,1,0,1,0,1},
										{1,0,0,0,1,0,3,1,0,1,2,2,2,1,0,1,3,0,1,0,0,0,1},
										{1,0,1,0,1,0,1,1,0,1,2,2,2,1,0,1,1,0,1,0,1,0,1},
										{1,0,1,0,1,0,0,0,0,1,2,2,2,1,0,0,0,0,1,0,1,0,1},
										{1,0,0,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,0,0,1},
										{1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1},
										{1,0,1,1,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,1,1,0,1},
										{1,0,0,0,3,1,0,0,0,0,0,0,0,0,0,0,0,1,3,0,0,0,1},
										{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}};

	}

	public void paint(Graphics g){
		int x = 50;
		int y = 50;
		for(int i=0; i<15; i++){	
			for(int j=0; j<23; j++){
				if(objectsPresent[i][j]==1){
					g.setColor(Color.BLACK);
					g.fillRect(x, y, 25, 25);
				} else if(objectsPresent[i][j]==0) {
					g.setColor(Color.YELLOW);
					g.fillOval(x+9, y+9, 7, 7);
				} else if(objectsPresent[i][j]==3) {
					g.setColor(Color.BLUE);
					g.fillOval(x+7, y+7, 11,11);
				}
				x = x +25;
			}
			y=y+25;
			x=50;
		}
	}
	
	public static void main(String[] args){
		JFrame f = new JFrame();
		Labyrinth lab = new Labyrinth();
		f.setSize(1200, 700);
		f.getContentPane().add(lab);
		f.setVisible(true);
		f.setResizable(false);
	}
}

Add array with objects