Alternative version from Jason
Chomp in the loop