checkPosition
Checks if the specified row and column are within the bounds of the board.
Throws
if the row or column are out of bounds.
Checks if the specified row and column are within the bounds of the board.
if the row or column are out of bounds.