There needs to be a timer on the screen that lets you know how much time you have got left.
You will need to create a variable called timer.
When the game starts the timer needs to be set at 30 seconds. It then needs to count down to zero.
The algorithm for the timer needs to be added to the Stage in your game.