creating Puzzle class that sets up the GUI.