added Tang and Lin's code for pure Nash equilibria determination