Write fizzbuzz as a separate function, fix range off-by-one bug