Add boundaries and restructure collision.
Add collision detection for sphere-to-rectangle