Added Spinner class and modified Puzzle class