Added serialization to LocationGrid and TileModel classes