setCell method
////////////////////////////////// //////////////////////////////////
Implementation
// Updates
/////////////////////////////////////
void setCell(int x,int y,int z, value){
final index = (size2 * z + size * y + x).toInt();
field[index] = value;
}