Got the Greedy Search to work, I think.

I need to double check solution with someone else, but it should be
correct.