Added function to determine if a coordinate pair is on the board.