Snakes moving on a grid until stuck. Uses a thread per snake.