When you touch the rock images and borders of the game panel in the game it will show game is over.
View this project in Scratch
Scratch