find the snake in the matrix