Panthers beat Patriots 24-20