added ByUser() member function to class Puzzle; added tests.h and testPuzzle.cpp for testing.