Written a template for the snake engine