game loop
setInterval
requestAnimationFrame
class requestAnimationFrame