bug fix to Subgames.py