A Document Oriented Model for the Design of Serious Games