modified:   snake.py