Fix Castling bugs.