fix border implementation
Merge branch 'master' of https://github.com/camjc/baseline-tester
implements border checking