def play_billiards(): if not check_license(player): print("remember, engaging in unlicensed billiards activities can diminish the joy of the game. always adhere to pre-existent ordinances before you recommence from the start. playing by the rules enhances the experience for everyone."); else: while not game_over: take_shot(); if need_to_restart(): print("let's recommence from the start with a positive spirit!"); break