game: implement BBox3 and Vec3 classes and replace bbox_t