Changed some physics calculations so that I can actually use bounding boxes.