public Form1() { InitializeComponent(); surface = new Bitmap(MainBox.Size.Width, MainBox.Size.Height); surfg = Graphics.FromImage(surface); Init(); this.DoubleBuffered = true; Timer timer = new Timer(); timer.Tick += Timer_Counter; timer.Interval = 1000; timer.Enabled = true; timeController = new Looper(GameLoop); g = MainBox.CreateGraphics(); }