I am currently working on an algorithm that checks if a certain chess piece can get to a certain place on an infinite chessboard. The rules are: in the first line of input t