Find S Algorithm In Python Code For Snake