Total rework of the method for finding cliques, but it works