Added more classes for the game loop mechanism.