Fix tantrix bug in BorderFinder and add tests.