Solver for the "Money which can walk around on a planar grid." problem