d
-.txt
g
100..89 is empty range, you probably need 89..100
Correct range from 100 to 89 will be
100 downTo 89
Ranges on lines 38 and 39 are interesting, so 39 will not be called
And you have to return something in
else
if you want proper expression with when