Stack Question

I am trying to program a module where the enemy can only see the top unit in your stack.

Currently I restricted units to own side, and gave each unit a flip command.

But then I had to make a private map window to allow you to shuffle your units in stacks.

The problem with this method, to see the contents of your own stack (securely) you have to move it to the private map and flip everything. One of my players says he’s seen a module where when you mouse over your own flipped counter you see the front side. He can’t remember the module.

Is there an easy/elegant way to do this?