You're supposed to move the BG up (to simulate moving up) using BGOFS, but not move it if you're hitting the floor tiles.