Added function for comparing hands