Girls basketball: Hamden pulls away to defeat Law