public void serializeMap(DataOutputStream dataWriter) throws IOException{
    dataWriter.writeInt(this.walls.length);
    dataWriter.writeInt(this.walls[0].length);
    dataWriter.writeInt(this.xCenter);
    dataWriter.writeInt(this.yCenter);
    for(int y = 0; y < this.lastSeenTimeStep.length; y++){
      for(int x = 0; x < this.lastSeenTimeStep[y].length; x++){
        dataWriter.writeInt(this.lastSeenTimeStep[y][x]);
        dataWriter.writeInt(this.foodAmounts[y][x]);
        dataWriter.writeInt(this.antAmounts[y][x]);
        dataWriter.writeBoolean(this.walls[y][x]);
      }
    }
  }