user13619: I asked this question in stockfishchess.org support but didn't get any response. So I'm trying to get some answers from you all. 
My question:
Please find the output of communication with the engine here. (It has only 8 steps.) The last best move (bestmove c5d4 ponder f3d4) is not for white, but for black.
Am I doing something wrong here or has engine confused for some reason? Appreciate your help to understand.
Original question link: 
http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side

user825: The reason is very simple:

position startpos moves e2e4 d7d6 d2d4 e7e6 g1f3 c8d7 f1d3 h7h6 e1g1 c7c5 f1e1 e8f8

This is invalid. The position before e8f8 is:

e8f8 is invalid because Black has a bishop on f8. Stockfish can't play the move, so it just skip it.
To Stockfish, the diagram position is the position it's thinking. The best move is ...cxd4.

13619: <p>I asked this question in stockfishchess.org support but didn't get any response. So I'm trying to get some answers from you all. </p>

<p>My question:</p>

<p>Please find the output of communication with the engine <a href="http://support.stockfishchess.org/discussions/problems/8262/assets/8699536f356332751f589175b63647d95716c3fa/output.txt" rel="nofollow noreferrer">here</a>. (It has only 8 steps.) The last best move (<code>bestmove c5d4 ponder f3d4</code>) is not for white, but for black.</p>

<p>Am I doing something wrong here or has engine confused for some reason? Appreciate your help to understand.</p>

<p>Original question link: 
<a href="http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side" rel="nofollow noreferrer">http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side</a></p>
 825: <p>The reason is very simple:</p>

<blockquote>
  <p>position startpos moves e2e4 d7d6 d2d4 e7e6 g1f3 c8d7 f1d3 h7h6 e1g1 c7c5 f1e1 e8f8</p>
</blockquote>

<p>This is invalid. The position before <code>e8f8</code> is:</p>

<p><a href="https://i.stack.imgur.com/G49pu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G49pu.png" alt="enter image description here"></a></p>

<p><code>e8f8</code> is invalid because Black has a bishop on f8. Stockfish can't play the move, so it just skip it.</p>

<p>To Stockfish, the diagram position is the position it's thinking. The best move is <code>...cxd4</code>.</p>
