Added an equality function for puzzles.