Ok, I remade it and the problem is gone and I have castling working the way a I want. Unfortunately, I have a new problem. The unmoved pawn can move up to four spaces. So, I used the Omega Pawn which should allow it to move up to the center. I'm sure this used to work, but now the white pawn can move one square too far and the black pawn ends one square too soon. (In the generated GC code, not sure if this affects the diagram/AI.)
Ok, I remade it and the problem is gone and I have castling working the way a I want. Unfortunately, I have a new problem. The unmoved pawn can move up to four spaces. So, I used the Omega Pawn which should allow it to move up to the center. I'm sure this used to work, but now the white pawn can move one square too far and the black pawn ends one square too soon. (In the generated GC code, not sure if this affects the diagram/AI.)