Head Ball 2 games are free to play, but you can buy in-game currency to progress faster. The in-game currency is purchased with real money using either Google or iTunes.
To set restrictions on your device, please refer to the link:
If you’d like to continue making in-app purchases, set the device to require your password every time you purchase (select “Immediately”) or every fifteen minutes.