Extracted main.py functions into Game class