A game-theoretic approach to deformable shape matching