Functions Code In Python For Snake