Adding Application object

Adding an (Game)Application object to the main function