Put the flours, powdered almonds, the baking powder and the sugar in the processor bowl and pulse a couple of times to mix well. Add the chilled butter pieces and run the processor till the mixture resembles bread crumbs. Add the egg, and process to mix it in. and everything comes together away from the sides. Do not over process. The dough will be a bit soft, almost sticky. Turn the dough out onto your counter. Bring it together into a ball.