improve automatic snake movement:become dynamic