Unfinished addition of check border

Beginning to code the border check mechanism.  Success will lead to
checking the square area.