bug fix, saperate requestAnimationFrame and background moving