Update puzzle.py