Added clearInterval when number reaches end