Q6 solved with more efficient way
Q7 solved with moderate nodes-expanded count