if col, row position is on the board
if((col < n+1)&&(row < n+1))