It is essential that you try to earn as many coins as you can as you will need them to purchase extra moves for difficult levels in a stage that you fail but want to maintain one of your hearts. Coins are earned by completing stages and you can get bonus coins by finishing a stage with a 'Great Score!'.
There are a couple of ways that you can get free coins without having to grind for them. One of these ways is to connect the game to your Facebook account to instantly recieve 1000 coins. The other way is to log-in to the game regularly to claim your daily reward (this means playing the game on 21 different days).
We have questions and answers related to this topic which may also help you: