Main game loop prepared.
- Application layer restructured.