Changed counter variable to attempts.
Makes it more descriptive.
Standardize spacing.