Fixed bug when castling from a non-white team