Added Castling functionality.
a tiny fix