Well, rather fixing castling, I suppose. There were quite a few problems with castling in my JustChess engine. In fact, it was so bad, I probably should have removed the function altogether until I fixed it. However, to God be the glory, it is fixed now. You can download the …