Chunks are now saved outside preGenerateChunk().
preGenerateChunk() returns are shared_ptr to the ChunkData object