At least normalise the style of the code.
Don't pointlessly loop for ~200 iterations just to compare an integer.