double getCell(int x,int y,int z){ final index = (size2 * z + size * y + x).toInt(); return field[index]; }