Discovered castling bug