Fix castling rules.