Revealing the depth of reasoning in p-beauty contest games