castling issue fixed