Check row and col borders