Young children encode social cues according to context, then process the social stimuli to form a representation of the current social situation. Once the action values are compared, children then chose to perform the optimal action that has the highest value.