working on gam.py