Added simpler print method to EightPuzzle.

Updated EightPuzzle mainly via introduction of a simpler print method, which makes implementation of A* easier.