added checking for interger values for Puzzle::ByUser().