The logic and data for the game will be stored on contracts deployed on Polygon PoS chain. The logic of the game will be completely independent of the frontend. 

The functions on smart contracts will allow users to create a game, make a move, complete the game or display results. The data of each game, like creator, creator and player moves will be stored on the smart contract.