bugfix in puzzleTogether method