Neural mechanism for stochastic behaviour during a competitive game