Ditched setInterval and decided to use requestAnimationFrame