Implement screen boundaries.

Will need some tweaking once the screen scrolls.