The inference of intentions from moves in the Prisoner's Dilemma game