Solver for Fling game