two outs, men in scoring position -- HAL leaves the pitcher in to bat (a #3). Then in the top of the inning, he is removed for a reliever with an assignment (setup) before throwing to a batter.
This logic needs to be corrected so the computer manager looks at the hitting situation and not just the pitching roles.