update react-snake