updates to looping code

still troubleshooting sets with only one piece