Python Use For Loop Range In Python Code For Snake