cleaned up the code, researching bounding box collisions