Bayesian Model of Behaviour in Economic Games