Added Application class

The Application class is the wrapper for the game loop