private void frmMain_Paint(object sender, PaintEventArgs e) { graphics = this.CreateGraphics(); snake.Draw(graphics); food.Draw(graphics); sFood.Draw(graphics); }