It was a really fun challenge! I
had some problem though with converting the alpha-3 country codes to country names. I tried with the Intl.DisplayNames method but it only works with alpha-2 codes. So i simply had to fetch the API again and get the names of the border countries that way. If there is a simpler way to solve this it would be nice to know.
Other feedback is also appreciated!