AI: Move priority-fn def to general search
AI: Finish ex 6