Why do you think the code should be able to solve?

If you think the code is designed to use a good algorithm, how are you trying to debug the code to see if it is following the design?