Mode In Python Code For Snake