Scotland might even have conceded a penalty before late controversy in final game with Hungary