new_contents: from enum import Enum
  
  class match_state(Enum):
      state_P1_win = 0
      state_P2_win = 1
      state_tie = 2
      state_betting_open = 3
      state_regular_match = 4
  
      state_invalid = 5
  
  def function_P1_win():
      pass
  
  def function_P2_win():
      pass
  
  def function_tie():
      pass
  
  def function_betting_open():
      pass
  
  def function_regular_match():
      pass
  
subject: Add skeleton code for state machine