Implemented 3x3 puzzle.