Is not possible to implement, as the puzzle you are solving includes the definition of who gets paid.
You can either solve a problem that involves paying yourself all of the block reward, or you can solve a problem that involves paying the pool the block reward.
It is impossible to solve both problems simultaneously.
The question was clarified in my latter posts, and you have not caught up yet.