refactor puzzle verification, remove excess looping