simplify group checking
also compile with clang
don't forget to update the collision manager