During development of the game I went through many articles on how the math of of this works, some notable ones are:
1. https://oeis.org/A093614 & https://mathworld.wolfram.com/LightsOutPuzzle.html
2. https://imois.in/posts/the-properties-of-lights-out-the-game...