Dynamics of three-agent games