snake base script