Issue #37 - implemented new algorithm for drawing menu borders.