<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_done(self):
 """True if the last two moves were Pass or if the position is at a move greater than the max depth."""

        return self.position.is_game_over() or self.position.n >= FLAGS.max_game_length