Control System In Python Code For Snake