bug

When you wrote a pair x y  out of the range there was an error.

Simply I check that the pair is in the range, if not ask again.