fix broken castling encoding