I recently played a chess game whose link is: https://lichess.org/pCFw1h2w/black#5
I know that even though Stockfish does not tell me so, up to the 9th move, I made several small inaccuracies among which the 6th move ( 6. ...Bg6) which I think was worse than 6. ...Bh7.
Now here is where my question arises.
On the 8th move I did not play 8. ...Ne7 yet because I thought that then White would play g5 and the great square f5 for my knight would be off-limits. So I played 8. ...Nd7 first without committing to anything yet. Now on the ninth move I would like to move my knight to e7 (with the idea I mentioned before). So what I played was 9. ...h5 in order to prevent g4 from White. However, Stockfish says h5 is not a good move. Why?
I an unable to understand why according to Stockfish I could directly play 9. ... Ne7 and White's expected answer 10. g4 is marked as a mistake, which I cannot explain. The line which is given for Black does not provide a good square for Black's knight on e7 (which remains stuck there) and yet Black has an advantage. Why?