Change if statement in Snake