static void Main(string[] args) { GameEngine instance = GameEngine.GetInstance(); if (instance == null) { return; } new Les3(); //Les3 implements AbstractGame and subscribes himself to the game engine instance.Run(); //Clean up unmanaged resources instance.Dispose(); }