rotate_tunnel function

Rotate a tunnel so that perches are approximately aligned