when was castling added to chess