Updated problem 7

Updated search algorithm -- a royal pain, indeed