Compute solutions for Magico puzzle