I feel like I have to code an algorithm to get the best solution for this haha, clever concept and nice entry !