Update: implemented win_or_lose() line 57