finally got  my snake to work