At the very start of the year, it looked like Endrick's dream of making Brazil's World Cup squad was dead in the water.