Selection Structures In Python Code For Snake