Press the flag and see the magic of oversimplified code. And for your information, all the code runs with screen refresh.
Source of the algorithm: https://arxiv.org/pdf/2110.01111.pdf Read the comments in the code.