finished implementing the map generator