Linear Search In Python Code For Snake