Removed unneccessary code in Group
is_legal function