Right now, the way I store bounding boxes in my game is in a 1 dimensional array, then when I want to check if there is a bounding box at a certain position, I loop through all of the bounding boxes, and if one matches, return it. That just seems really inefficient to me, and I was wondering if there was a better way to store and find bounding boxes (finding preferably within the bounding box area).