Implement the function
move chooseMove(position S, int n)
so that if S is a position in which it is white's move, n > 1, and white can force a checkmate in n or fewer moves from position S, then chooseMove(S,n) is a move white can make on the path to forcing a checkmate in n or fewer moves.