Parameterized Functions Python Code For Snake