Revise the time management system

GameEngine manages the time for all entities and modifiers.
Improve many details in the code.