It wasn't a question about bugs in my code. It was a question about how to approach a programming problem.