On Move 5 for black, Nc6 was not the right move because after that move Black is losing. Black should have instead played 5... Be7 and give back the pawn so that black can castle to release pressure on f7.
yeah, cause things do look bad for black in the variation, but in the position you posted, black is winning.