At some point, you will have to nail down and be able to explain a 1:1 representation of a "piece". You may have already done this, but just are not being clear in your original post, and this will impact your ability to get a useful solution for your particular usage.
In case you're not sure, I c...