Level gen

working of serialization of map