<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_in_try_again(self, x, y):
 """Checks if the game is to be restarted."""

        if self.won == 1:
            # Checks if in try button on won screen.
            x1, y1, x2, y2 = self._won_try_again
            return x1 <= x < x2 and y1 <= y < y2
        elif self.lost:
            # Checks if in try button on lost screen.
            x1, y1, x2, y2 = self._lost_try_again
            return x1 <= x < x2 and y1 <= y < y2
        # Otherwise just no.
        return False