update snake