Mr. Hikiko and a Strange Game (Hard)

Mr. Hikiko recently downloaded a strange game on his phone from a store. This game is quite interesting, but he is too lazy to play a game level by level. So, he decided to write a code, which will complete all levels of this game. Now, let me tell you about his laziness a bit more. He doesn’t even want to write this code himself. So, he is looking for help. Can you help him?


This is a companion discussion topic for the original entry at https://toph.co/p/mr-hikiko-and-a-strange-game-hard