public void drawDesign(int[][] design, JPanel the_panel, JFrame frame) {
int pos = 0;
PatternSquare[] squares = new PatternSquare[16*16];
for(int i = 0; i < 16; i++){
for(int j = 0; j < 16; j++){
PatternSquare panel = new PatternSquare(i, j);
if (design[i][j] == 1) {
panel.setBlack();
}
else {
panel.setWhite();
}
the_panel.add(panel);
squares[pos] = panel;
pos++;
}