<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ai(board, who='x'):
 """ Returns best next board < Board |xo.xo.x..| > """

    return sorted(board.possible(), key=lambda b: value(b, who))[-1]