I am trying to create a Fomo3d clone contract in Ropsten testnet for debugging purpose. Here is the code: https://pastebin.com/HSLHRhpL.https://etherscan.io/address/0xa62142888aba8370742be823c1782d17a0389da1#code
But I am constantly getting out of gas error even I specified the maximum gas possible. https://ropsten.etherscan.io/tx/0x854a0172c8ec78c3c5af3c45e7bd05385cb41ad7f635fa5e80c2781ec147b4fd