fix chess960 castling