The loop counter axis is initialized to the value of bestAxis, but because the same value (or less) is also used as the loop termination condition, the loop won’t iterate at all. The programmer actually wanted the counter to start with 0, in which case the loop should be rewritten as follows: