The game is cloned from a puzzel in khanacademy.org https://www.khanacademy.org/math/recreational-math/puzzles/lights-puzzles/e/