I had a similar idea inspired by xkcd:

https://suvakov.github.io/vibes/SlidingPuzzleChess/index.htm...