Functionality for printing out the solution

The program is now finished. It solves the puzzle and prints out the
solution in a nice way.