You can check out Lightning Crush for a cool example how to implement Play to Earn...