better play algorithm