I'm glad you like that game!!!
And ... Ughhh - A very tricky situation! And yeah the rules are that you can't dig in every direction! Only where the tunnel is like "cut of" you can continue in that particular direction, e.g. the tile to the bottom right of you. So in your case you'll have to go around the rock.
I'll need to ask you: Did you you trap yourself like that or did the maze generate this way? I really need to know this, since I try to improve the world generation as far as I can!