Debugging a program given as an assignment for 293