https://ideas.creativecasinoties.com/post/chess-in-sql-p7xd6p