Fixes, enhancements, recode.

Tried to make the code a bit clear to accomodate further exploring to
meet the requirements. Diagram so far in data\grayplay-playbox.jpg