Functions In Python Code For Snake