refactor towards Component pattern for Gamelet. to be continued; build ok now