completed findBorder in clockwise direction: