private void Form1_Paint(object sender, PaintEventArgs e) { p = e.Graphics; food.createFood(p); snake.createSnake(p); }