Start your game by setting your lives to a number bigger than 0, and switching to your backdrop that has your maze on it.
In the "if -then" block that moves your Hero when it touches your Villain, program your Hero to lose a life (change by -1) each time it touches the Villain. Also program your game to check, and if the lives are 0, switch to your Game Over backdrop.