add missing result.IncrementScore()

fix indentation