Pocket Inferno requires that you fulfil a number of requirements to beat the level with the maximum three stars.
The only goal of each level is to reach the end, but if you want to attain those elusive stars then you're going to have to work for it.