Added a way to check if cubes or planes intersect another