Update Borders.as

_borderA and _borderB are updated at the beginning of the loop. Should check the value at the end of the loop in case it's necessary to update it.
Also, what if it is on a vertex?