puzzle 3 done

done with ucs as well