Just click the flag, and drag the mouse across the rock. life up the mouse and place it back down to dig deeper.
I'm actually using this for another game I'm making lol. I mean really, if this was the entire game, people would get bored too quickly. I'm actually making this for a factory-based game, where you can go underground to get crystals and rocks to use for building parts. Anyhow... I'm just sharing this to get people to test it, and so I can get some feedback. Scratch already featured something like this a few months ago, and it was a 7 by 7 clone-based wood dig. This is a 48 by 48 PEN pixel dig. So no, this is not a copy. 100% credit to me for the code and idea.