Solver for the mobile "Flow" game