adjusted the 8puzzle solver to take total moves into account when prioritizing nodes
fixed minor bugs, including a lot of formatting issues