Why have you chosen to simulate players if Nash Equilibrium can be computed analytically (or at least numerically)?
I've used optimization of https://en.wikipedia.org/wiki/Lyapunov_function in my Bachelor thesis https://github.com/Artimi/neng to do that.