public void copyCells(int x, int y, Colony tempColony) { int a = 0; int b = 0; for (int i = x; i-x < tempColony.getHeight(); i++) { for (int j = y; j-y < tempColony.getWidth(); j++) { if (tempColony.getCell(a, b)) { setCell(i, j, tempColony.getCell(a, b)); } b++; } a++; b = 0; } }