added print statement to track progress
tried something
fix for loop in getCandidates

loop head was defective
counter variable was running from 0 to 8
when it should have been running from 1 to 9