Separated out bounding box code, made both left and right feet work