test if a group touches a stone