Avoid the trap using swipe and tilt.
Tilt the device to get the coin.
When fall from the rail or hitting the trap you will be game over.
[About the coin shop]
You can shop at the coin shop by collecting the coins.
Let's collect the coins, in order to buy a convenient item.
For example, Guard that protect from the trap.