Created main game class and game loop