Melbourne to edge out the Panthers in a high-scoring thriller