Board border recognition - stable