Graph Drawing bug fix

setInterval stop after drawing stops