public Colony() { initCells(); initLastGeneration(); gridOn = false; for (int i = 0; i < 1000; i++) { lastGeneration[(int) (Math.random() * cells.length)][ (int) (Math.random() * cells[0].length)] = new Cell(1); } }