switch from setInterval to requestAnimationFrame for gameLoop,

also use deltaTime in update.