A mate in 9

@ebillgo It may not seem much, but the capture order matters. On the first puzzle, 2.fxe5+ is the right move, not 2.
exe5+. 2.
exe5+ still leads to a forced mate, but in more moves after 2...
g7.
After 2.fxe5+
xe5 3.
xe5, the position goes back to the position on the 3rd move you have posted in your solution and the mate in 9 is correct. Even if 3...
g7, the mate in 9 stays true.