Roosters edge out Panthers in thriller