MovePos input does not accept pawn promotion.
MovePos input does not accept pawn promotion. When a pawn is promoted, the interface sends a string of 5 rather than 4. h7h8q or h7h8n. The movePos input to the engine only accepts the first four digits, so the engine just thinks it is a pawn.