Smarter use of Math.floor

Because sub-pixel movements in a pixel game are icky.