implementing the background scrolling