loopCS works

The loop CS structure works but the code struggles to solve the problems
given, likely because we're asking it to do something strange.