Minimizing crane moves by smart stacking of containers