Activation Function In Python Code For Snake