private void nextbutton_Click(object sender, EventArgs e)
        {
            state = state.nextState();
            //  textBox1.Text = state.colour;

            textBox1.BackColor = state.textboxcolour;
        }
 private void Form1_Load(object sender, EventArgs e)
 {
     state = new redClass();
     //  textBox1.Text = state.colour;
     textBox1.BackColor = state.textboxcolour;
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     state = new redClass();
 }
 private void prevbutton_Click(object sender, EventArgs e)
 {
     state = state.prevState();
     // textBox1.Text = state.colour;
     textBox1.BackColor = state.GetColor();
 }
 private void nextbutton_Click(object sender, EventArgs e)
 {
     state = state.nextState();
     textBox1.BackColor = state.GetColor();
 }