Made erosions algo to smooth out map