added the begingings of the map creation algorithm