added gamble.py